Tag Info

New answers tagged

0

Keep the point in the middle of the object before the movement; Create a Vector with start in this point and end in the point in the middle of the rectangle result of the collision; Check what side is in contact with that vector;


1

I figured it out! Physics cannot be used with 2D colliders like BoxCollider2D. I switched to Physics2D and everything works fine. Thanks!



Top 50 recent answers are included