- Home /
Question by
Avash · Sep 20, 2014 at 03:09 PM ·
rigidbodyrigidbody-collision
One way rigidbody collisions
I have an object with rigidbody but I don't want other objects interact with it. How do I do it?
EDIT: I can now ignore collision between my object and every other object (withPhysics.IgnoreCollision), but I want my object to keep reacting to collisions. Still not solwed.
Comment
I want all other object to ignore the one selected by script.
Answer by 767_2 · Sep 20, 2014 at 03:41 PM
you should put it in a layer and uncheck the collision with that layer and other layer using collision matrix,it is explained here
so if it is in a separate layer(not tag) the collision will be ignored
So if I have a layer that is attached to my object, how to I make every other object ignore the one with layer?