I imported a model with an animation of jumping and running from the Mixamo site, there in the finished animation there is not only animation, but also a change in position, how to remove it, so that only the animation is played, otherwise it pops out.
1 answer
You need to look towards RootMotion . This manual describes in detail that there are 2 variants of events depending on the BakeIntoPose settings:
- or the movement is baked into the character’s “pose” - that is, rotation / movement only happens with the model, while the GameObject itself does not change the rotation / position
- or the animation affects the position / rotation of the GameObject itself
This setting can be applied to: the rotation of the object, the movement along the Y axis and the movement along the XZ axis.
This Roor Motion setting is available only for models that are imported as humanoid animations. In order to set such a setting, select your model in the project, go to the Rig tab and set the value of the AnimationType parameter to Humanoid. After that, on the Animation tab, each animation clip will have fields of the Root Transform family. 
- Sorry, I'm doing something wrong, my Bake Animations is inactive. With the run, this problem was solved when I ticked Loop Time and Loop Pose, but with a jump it only partially helps: it does not jump more forward but Y still jumps from its place. Where I need to change can you explain, please, in the Prefab model there are tabs Model, Rig, Animation, Materials, change it here or in the Animatore by selecting Jump? I ask you to. - maq
- @PinPin added information in response - vmchar pm
- Thank you very much human - maq
|