🔸Motion Warping Asset
In this section, you will learn how to properly set up your animations.
Last updated
In this section, you will learn how to properly set up your animations.
Last updated
First, we need to create a data asset, which will configure the warping for our animation. To create a new asset: Right click -> Create -> MotionWarping -> MotionWarpingAsset.
Now you need to select your animation. Let's use JumpOver animation as an example. Once you've chosen your clip, hit the Extract Curves button.
Now it's time to mark parts of the animation we want to warp. Specify the amount Phases Amount - this value depends on desired target points.
Example: JumpOver animation this value is 3, because we have 3 target points: close edge, far edge and landing point.
After that, hit the Generate Phases button:
These 3 purple segments mark parts of the animation, which will be used for warping. You can resize and drag these areas. Also, you can preview the animation right in the editor:
If you open up the Warp Phases list you will see the details for each phase:
T Offset: translation offset for the target point.
R Offset: rotation offset for the target point.
Start Time: animation start time for this segment.
End Time: animation end time for this segment.
Min Rate: minimum allowed playrate.
Max Rate: maximum allowed playrate.
Total Root Motion: defines the distance along each axis.
Tip: make sure to close and open up the asset again to generate the total root motion!
The last properties we have left are:
Use Linear: defines if the will use the linear approach. Set it to true for X.
Use Animation: defines if the system will use original root motion. Useful for Baked Into Pose animations.
At this point, our Motion Warping Asset is ready. Now let's move on to our character.