Archive 17/01/2023.

How to work animations with root motion?

misc

Was this root motion patch never merged?

How do you work with animations with root motion? Does urho support it?
For example, godot has something like get_root_motion_transform() which you can use to transform a node.

Thanks.

rku

It wasnt merged because it is just a proof of concept implementation which had unsolved problems. Urho3D has no facilities to work with root motion animations otherwise.

Modanung

Nodes do have WorldToLocal and LocalToWorld functions which you could maybe wrap into a convenient LocalToLocal operation for your situation that handles whole transforms. This addition might even make a nice pull request, or I could be flabberverbing.