i have some fbx animation of a character climbing stairs.
I can play this animation with some character in Unity BUT it don not move in space
the charcater stay on his position (x,x) , (rotation are good) and he has always on foot on floor. (y=0).
i have seen OnAnimatorMove() methode to give some motion …
BUT
wich data shoulld i use in Animator class to modify transform of character ?
OR maybye
is there some simple check box in inspector window to apply motion (in space) to the character ?
thank you for your help !
Are you not using colliders and rigid bodies?
neither … (however i do try to add somme collider or rigidbody but i have about the same problem )
animation is playing right(rotation and y-y moving )but my character always stay on floor…
e.g. if he climb on some object of height h , i’d like its position vector to be augmented by (0,h,0) once the animation ended but it don’t change
i don’t know where i made the error :
- one un-cheked option somewhere
- can the error be due to character ?
- can the error be due to animation fbx file itself ?
i made some new tests : i apply some other jump or stair climb animation to the same character with the same animation option in Unity : it works fine …
then It seems the problem is coming from FBX file …
This forum may not be the place to get solution but
if anyone would have some tricks or explanation to correct this fbx problem , i would be grateful !!
There are two ways to move a character in space - either by root motion or by code. Each animation “may” be setup different - with root motion baked into the fbx or not.
Sounds like you prefer to use root motion for moving the character, but the fbx you want to use for climbing stairs does not have root motion baked into it.
You can check this in the inspector by viewing the animation. Does the character move in space in the inspector or stay in place?
If it moves in space than the fbx does have root motion and your setting to apply root motion are set incorrectly.
If the animation only plays ‘in-place’ in the inspector - the fbx does not have root motion.
The process for using animations without root motion is to use code to control the movement of the character.
I’m an artist - so I have no input on this method, however - the animation section in the learn section - details all the needed information, including everything I’ve detailed above.
Suggest researching the animation section to rectify the issue and to learn all the aspects of animation.