Applying Root Motion to your character is a very practical and accurate way of animating it. However, every now and then you might need to manually control one or more aspects of the character's movement. Perhaps you only have an in-place animation to work with, or maybe you want the character's movement to be affected by other variables. In such cases, you will need to override Root Motion via script.
In this recipe, we will control the character's movement via script, making it rotate and jump.
For this recipe, we have prepared a project named
MixamoProject, containing several assets such as levels, animated characters, and props. You can find it inside the
To apply ...