🌳Root Motion
Last updated
Last updated
Root motion, if enabled, makes the parent object (the one with the Animator component) move instead of the hips of the armature. This allows collision detection in the implementation of the character controller.
Please note that this feature is experimental and may require some adjustments on the implementation to work.
Root motion is enabled for a character via the following overloads when registering the players' animators:
And
Example of configuration:
A few options are available :
ApplyHipsYPos => Sets the root Y position to be the hips Y local position
ApplyHipsXAndZPos => Sets the root X and Z positions to be the hips X and Z position
BackToInitialPose => If set to true, the avatar will revert to its initial position when the emote has finished playing
BakeIntoPoseXZ => If set to true, the emote will be played in place for the X and Z axis, meaning the avatar won't move horizontally during the animation
BakeIntoPoseY => If set to true, the emote will be played in place for the Y axis, meaning the avatar won't move vertically during the animation