- Home /
Rigidbody stops moving by code and then doesnt respond to collision
So ya i have narrowed the problem down and can see that when i make my model stop for 3 seconds in order to perform an animation the rigidbody stops responding to collision, and when the GO starts moving again collision works as intended. The rigidbody is set it isKinematic and the collider projectiles have a trigger collider on them. NOTE the problem still exists if i switch the rigidbody to no isKinematic.
NOTE turned off the animation and still have the problem so i know its not the animation now. So disregard this question please the problem lies elsewhere.
Already have a box collider mesh on the GO still searching for the new problem as stated its not with the animation.. But still drawing blanks lol going to take off for the nite mayb itll smack me in the face 2morrow
Problem Solved! For those of you interested all i did was switch the animated model to a trigger and the projectiles to rigidbody. Not sure why rigidbody has to move to detect collision but it works.
Answer by skovacs1 · Dec 06, 2010 at 10:20 PM
It sounds like your rigidbody is falling asleep. See the docs. You would use rigidbody.WakeUp(); to prevent this from being a problem.
If that isn't it, then it could well have something to do with either your exact setup or what you are expecting it to do. In that case, perhaps you might consider detailing clearly what you are doing to test your collisions when your Rigidbody is stopped and how exactly you expect it to react.