- Home /
Animation always changing object position
I have a humanoid and I have added some animations made in Mixamo to it. I have made also a parent object that contains the Body with its animator attached so that I will use the relative position to its parent. However, I have some animations that occur when the humanoid is sit and also a sitting animation. I get that the humanoid instead of sitting down, it goes up and actually sits on the air. So I changed the sitting animations to modify Y on the humanoid Body so it will go down to y = -3.5f. It actually works smoothly inside the animations tab but when I run it, even though it changes its position to -3.5f after it begins to increase weirdly and in a few seconds my character is no longer sit but again in the air and to the infinite. What can I be? Here is a video that I made of my issue. https://youtu.be/tHUc7zwbI8I
alt text
Answer by ParadoxedOne · Apr 05, 2019 at 05:43 PM
Hey there, I may be able to help.
I would first recommend removing the -3.5f you added to the animation. Then,
In the project tab, click on the sitting animation you downloaded.
2.)Then in the inspector click on the Animation button.
Click the option under "Root Transform Position (Y)" that says "Bake Into Pose". This should prevent your character's Y position from drifting around.
Hello I just did what you told me, I used the .fbx files that I downloaded from $$anonymous$$ixamo, I changed them to Humanoid under the Rig tab and the I changed the X,Y,Z Root Transformation Rotation under the Animation. I did this process for every .fbx file. However when setting the model to humanoid and going in its configuration I get that Unity cannot figure out its T pose, so I set it to Enforce-T-Pose and it became green. Then I made a new animator and I added these modified animations. Now what is happening is that I get some strange red dots when animating and the character is not moving correctly. What is it now please? @ParadoxedOne
https://youtu.be/1VGlEiekgQg here is a video of what is going on now...
@cesarcastro15 At 3:07 in your video the third clip is set as a generic clip and not as Humanoid which is why your character is sitting in the ground. Also under the rig, for the animations that aren't working, ins$$anonymous$$d of using "Create From This $$anonymous$$odel" try the option "Copy From Other Avatar" and select the avatar from the first animation clip you played in your video. Hope this helps!
Yes you helped very much and they are playing smoothly now. However now I have another issue (I'm sorry I don't know why Animations are that complicated). Here in this very short video you can see it.... https://youtu.be/gAYubk$$anonymous$$z7s8 @ParadoxedOne @xxmariofer
Uncheck the "Bake Into Pose" option under the "Root Transform Position (XZ)". This option bakes your animation into place when checked and will not allow for movement on the X or Z axis. Also if you want your animation to be able to control your rotation you may want to uncheck the "Bake Into Pose" option under the "Root Transform Rotation" as well.