Overview
This component is used to move the character forward. Perfect for Sliding or Rolling mechanics. Make sure to add it directly to your character:
Inspector.
- Capsule Height/Radius: used for capsule trace to find an obstacle.
- Layer Mask: used to filter collision targets.
- Rolling Asset: Motion Warping Asset with rolling animation.
- Roll Max/Min Distance: max/min allowed movement distance.
- Max Fall Off: max allowed vertical offset for the target point.
How does it work?
This component uses 2 stages to trace down the target point:- Try to find a blocking obstacle in the way. If an obstacle found, abort the interaction.
- Trace down to find a target point. If no hit, stop the interaction.