- Home /
Rigidbodies push other rigdidbodies
I am trying to set it up so that my character which has a rigidbody will not push a wall, which is also a rigid body. I tried using, Mass, but I found that more Mass ≠ more Weight. Is there a way to make a rigid body that cannot be pushed by another rigidbody?
As an example: A car hits a wall and stops. Rather then, a car hits a wall and pushes the wall.
Answer by meat5000 · Oct 20, 2013 at 07:23 AM
Set a wall to be Kinematic, or use a mesh collider and set it to 'static'
Or perhaps try this:
http://docs.unity3d.com/Documentation/ScriptReference/Physics.IgnoreCollision.html
Or place the objects on different layers and clear the corresponding box in the collision matrix.
Its more complicated then that because, I have two colliders! One to spawn the wall -- and needs to pass though the wall, and one to hit the wall after.
So I have a specal "no collide" script so the first collider doesn't hit the wall. I have a collider with in another collider. so its nasty.