- Home /
Ignore Force Imparted By Object
Ok, so I have an object in my game, and it needs to be physically enabled. The character needs to be able to interact with the object, but the character should not be imparting any force to this object, so just disabling physics layers isn't an option.
The character needs to be able to climb over the object, unfortunately right now, he also 'kicks' it across the screen. Object also needs to be able to move when on a moving object, and the character is standing on top of it. (Makes locking the rigidbody position difficult)
Any thoughts on this?
Thanks for the comment alucardj, but setting the rigidbody to kinematic doesn't help. The character is physics enabled, so the object moving on a conveyor means the character just slides off.
I have a similar problem to this, I'm building a space shooter in Unity and every time my character collides with the walls of the ship the entire ship moves. I can't use is$$anonymous$$inematic beacuase the ship still has to move when it is being controlled and when other ship collide with it. Any ideas?
Try setting the mass of the rigidbody of the object very high. Hope it helps.
I tried your suggestion and it did reduce the amount the character could move the ship by wall collisions, but if a player keeps running up against the wall it will still slowly accelerate the ship. Is there any way I could create a force on the ship moving in the opposite direction to the character, like what would happen in real life?