- Home /
Question by
vattenflaskan · Apr 13, 2012 at 11:14 AM ·
rigidbodygameracing
Rigidbody.AddExplosionForce doesn't affect my moving rigidbody!
I'm making my first project in school and I'm making a racing game. And the Rigidbody.AddExplosionForce doesn't affect the moving rigidbody on my npc unless the mass is 1.
Comment
Edit your question and post the script where you add the explosion force.
Answer by Tseng · Apr 13, 2012 at 11:16 AM
I guess your cars are marked as "kinematic". Kinematic bodies are not affected by physics, but they will affect other physic objects.
That being said, you can not use AddXXXForce(...) methods with kinematic rigidbodies. Kinematic bodies are supposed to be controlled via scripts.
Be more detailed! You need to tell us what the problem actually is, not just the symptoms!
Your answer