New answers tagged

0 votes

Collision callbacks not working

I fixed the issue. I needed to give my player object a new tag called "Player"
user avatar
1 vote

Collision callbacks not working

Your scripts are okay, your issue is due to scene setup rather than coding. In order to detect a trigger collision, OnTriggerEnter2D() has some requirements: Both objects must have one ...
user avatar
  • 4,037
1 vote

How to detect objects within a radius without using a trigger collider?

The classes Physics and Physics2D contain several useful static methods to detect Colliders ...
user avatar
  • 112k
0 votes

What is the best way to check if a moving 2D object will collide with another immobile one before reaching its destination?

This question is from seventeen months ago so I'm not going to get too deep into it. Assuming this is some kind of object-avoidance problem, I would suggest that you could just add the "radius&...
user avatar
  • 173

Top 50 recent answers are included