- Home /
Character snaps back to point of origin or walks in place
After importing my character and animation with walk in place checked and setting up my animator controller with Loop Time checked I hit play but my character snaps back to point of origin, if I check Loop Pose it simply walks in place and goes nowhere, how do I correct this?
Your animation needs to be an "in place" animation. Otherwise it will animate the player "moving", but in reality it is not moving, it only appears to be via animations. In other words, the animation is only for the appearance, the movement still has to be done via code, when the animation has its own movement, it visually conflicts with the objects ACTUAL position, appearing to snap backwards. In reality the object never actually moved.
usually if animations are snapping around object positions, it's because the animations are snapping to world coordinates in s$$anonymous$$d of local. to fix just make a new empty game object. and drop your model into it as a child object.
obviously rename the new parent and put your rigidbody on the new parent.
Answer by theANMATOR2b · Apr 02, 2017 at 05:19 PM
@lee-cruz It is unclear what your end goal is. What setup exactly do you want? Do you want to use the root motion within the animations to move the character (without it snapping back), OR do you want to use the animations without root motion and control the locomotion of the character via code?
Your answer
Follow this Question
Related Questions
Animator Controller using Animation Component? 0 Answers
Animations don't work with humanoid avatars 0 Answers
Accessing an FBX's Animated Custom Properties in runtime. 0 Answers
How to make an animator controller efficient 1 Answer
The 'correct' way to deal with animations in a grid-based game? 1 Answer