Use root motion
Last updated
Last updated
By using root motion you can switch from script-based movement to animation-based movement. For more information about what root motion is please visit this link.
Root motion can be enabled/disabled at any time by calling the useRootMotion property from the CharacterActor
component.
In Addition, it is possible to tweak the way position and rotation get updated by root motion. For example, you can mix animation-based movement with script-based rotation.
Do you want to apply root motion for planar movement but at the same time use script-based vertical movement (e.g. gravity, jumping, etc)? No problem, choose the Set Planar Velocity option from the Root Motion Velocity Type field.