- Home /
Question by
Detinator10 · Aug 30, 2014 at 11:45 PM ·
collisionrigidbodycolliderrigidbody2dpush
How to make certain rigidbody2d's not able to push other rigidbody2d's?
I have enemies and I don't want the player to be able to push them. So how can I make it so that the player's rigidbody(or collider?) can't push the enemy's rigidbody(or collider?)? Thank you!
Comment
Answer by kacyesp · Aug 30, 2014 at 11:52 PM
Have you tried Physics.IgnoreCollision() ?
http://docs.unity3d.com/ScriptReference/Physics.IgnoreCollision.html