Top-down collisiondetection
So, I have a few colliders. I have a box, and I want the player to be able to touch the box but not move inside of it. However, I've designed the game in a top-down idea, which means that I do movement calculations in a script independent of the physics engine.
Here's the problem. I want to be able to collide with the box but not move into it. I have colliders setup for both the box and the player. I also don't want the players with controllers to suddenly be unable to move along the box.
Your answer
Follow this Question
Related Questions
crouch attack collider 2d question 1 Answer
Get all the coordinates inside of a Collider Unity 2D 1 Answer
Which is collider and which is othercollider? 1 Answer
Had to turn off gravity scale, but now player goes through walls 0 Answers
NullreferenceException dealing damage to a child of the enemy 0 Answers