- Home /
Can I Addforce to a model while using Animator
I have a model with Animator component. When I try to addforce to this model to make it move forward, it doesn't work. But if I disable the Animator component, it works fine.
Answer by MattGen · Sep 20, 2015 at 11:51 AM
Rigidbody on a skinned mesh renderer should not be used for that purpose. You'd better move your character with transform.
Answer by Vivek-Joshi · Sep 22, 2015 at 06:32 AM
If the Animator is playing some default animation in which the model is stationary and cannot move, you can try Vector3.Lerp() method to change the position of the model.
Or just put your model into an empty object (with rigidbody) so you can work with animation and forces separately
Answer by Tomer-Barkan · Sep 28, 2015 at 03:25 PM
First, make sure the model has a rigidbody object. Second, if you use this, you should probably disable the root motion in the animation controller, since the physics engine will be controlling it's movement and not the animation.
Your answer
Follow this Question
Related Questions
Use AddForce with Animations?? 2 Answers
Update speed and physics makes my rigidbody jiggle 2 Answers
AddForce forward also adding downward force 0 Answers
move player to its rotating direction? 2 Answers