Hi everyone,
I tried to explore Motion Matching for my project but I’ve a problem with the trajectory on my Pose Search Database.I try to apply Motion matiching to a quadriped character.
I explore the Game animation template of epic games, look some videos tutorial about MM but I have the same problem: animations in my Pose Search Database have no trajectory, or a wrong one.
However, my mesh have the same direction than the character in Epic’s Template (Y forward), Root motion is apparently correct (I see the trajectory of root when I open the animation alone …), enable root motion in animations asset, enable force root lock (same as Epic’s Template, tried to disable it, problem still here) I don’t found what is going on.
My Pose Search Schema is set with default settings for Trajectory Channel as same as Epic’s Template (except some offsets ans weights)
you can see more details and screenshot on my reddit post (epic forum don’t allow me to post more than one screenshot): https://www.reddit.com/r/UnrealEngine5/comments/1lrjfil/motion_matching_missing_trajectory_help/
Thanks for help !
I’ve found the solution by myself.
The problem was on the bones orientation, not the mesh itself.
The mesh is correctly Y forward oriented. But the bones was not.
So, this is the cause of my initial problem.
Now, the solution I found for now:
My graphist try lot of export from Maya, he don’t found a solution for now to orient bones correctly with the Y Forward orientation.
But by looking further on import settings, I try (with a little bit of A-B testing) the option “Use T0 as Ref Pose” option in the “animations” category of the importer.
With this option, the bones are now correctly oriented for motion matching trajectory !
This solution work for my use case, but I think the ultimate solution is to achieve to orient the bones correctly (Y forward, like on my screenshots.), you can also try to change trajectory settings by change the flags on each trajectory channel’s settings to take in count all the axes.
example: select “Position” instead of “Position XY”, select “Velocity” instead of “Velocity XY”, etc … but in my use case, it doesn’t work well.
I hope my post will help some people on this problem ! And I hope Unreal Engine team will improve this feature’s documentation by adding the pre-requires on import!