- Home /
Weapons affecting physics
I have a weapon that uses a box collider and a rigidbody. When it gets "picked up", the collider and rigidbody are deleted and it gets parented to the camera. When it gets "dropped", a new box collider and rigidbody are added to it and it gets parented to the main parent. If I have the character (a capsule) start "holding" the weapon, it works fine, but if the character has to pick it up, it makes the character slowly slide forward, even though its collider and rigidbody are gone. Is there anything I can do to fix this?
Answer by Niklas · Mar 20, 2011 at 10:03 PM
Maby its not the same mass on the new rigid body and that what's affecting the friction of the capsule? Or maby you'r PickUp() accidentally set the new weapons to the wrong parent. Can you provide some code?