- Home /
2D ignore collisions for some objects
I am trying to recreate this game in unity.
I can't figure out a good way to contain the player to the world but not the enemies.
My initial idea was to have 4 2D box colliders bounding the world that would be ignored by the enemies.
However, it seems that Physics.IgnoreCollision has not yet been implemented for Unity2d.
I'd prefer not to use Math.Clamp to constrain the player's movement. Is there a simple way to do this?
Answer by Ashish Dwivedi · Feb 10, 2014 at 06:04 AM
See this reference:
Remember to accept the answer if you think it solved your problem.
Your answer
Follow this Question
Related Questions
My object is going through boundaries Problem! 1 Answer
2D Colliders and spawners check 0 Answers
2D Animation does not start 1 Answer
How to make total internal reflection effect in 2d? 0 Answers