Having trouble understanding basic 3.1 root motion.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By itbrandonsilva

Looking to test out the newly added Root Motion as presented here:

Spent a few hours trying to get this to work, but haven’t found any real success. I’m able to use the RootMotionView to confirm that my configuration is valid, but when running the project, I don’t see any root motion occurring (instead the effect seems to be that the motion of the selected Root Motion track is cancelled out, leaving the object motionless). I’ve resorted to lots of random configurations and validating them against RootMotionView successfully, but I am unable to see the result I expect when running the project.

I’ve attempted using the armature root bone as well as the armature itself as the Root Motion Track, both with results that make sense when previewed in RootMotionView.

If anyone has found success with this feature, it’d be great if I can have a working example to work with and perhaps find what I’m misunderstanding.

Below is a quick display of what I’m experiencing. After running the project, I’m expecting the character to move forward as presented by the RootMotionView. Perhaps I’m not understanding what Root Motion is supposed to achieve?


:bust_in_silhouette: Reply From: davidoc

It’s OK if it looks like the movement is cancelled and your character is in place, you should get the the transform using get_root_motion_transform and apply it to your character.
The idea is to animate position/rotation/scale in your authoring tool and your AnimationTree will give you the transform.
I downloaded the TPS demo and studied how it works:

Testing root motion

Oh, I didn’t realize the TPS demo was already available. I thought it was still in development to be made available for the 3.1 release. Here it is, for others:

GitHub - godotengine/tps-demo: Godot Third Person Shooter with high quality assets and lighting

Thanks for the direction, now I can finally move forward with this.

itbrandonsilva | 2018-11-24 20:30