The Dash ability extends Trajectory Move by moving the character toward an accepted destination at Move Speed. Releasing the movement axes performs the dash; an invalid destination does not move the character.
Setup
- Select the + button in the ability list under the "Abilities" foldout of the Ultimate Character Locomotion component.
- Add the "VR/Dash" ability. The ability should be positioned near the top of the ability list so it has priority over other abilities.
- A default value for the Trajectory Object’s Line Renderer and Surface Indicator will be created. You’ll likely want to customize this for your project.
Key settings
Move Speed
The speed at which the character moves towards the destination.
Arrived Distance
The character has arrived at their destination when the distance between the target position and character position is less than the specified value.
Arrived Rotation Delta
The character has arrived at their destination when the delta angle between the target rotation and character rotation is less than the specified value.
Movement State Name
The name of the state when the character is dashing to the destination location.
Verify in Play Mode
Accept a nearby valid destination and confirm that the character travels rather than teleporting. Test a destination near the maximum range and tune Arrived Distance and Arrived Rotation Delta if the ability remains active after the visible movement has finished.