Parkour SystemVaulting and Mantling
Jumping System
The Jump System ensures that if the player cannot vault or mantle (when the trace does not detect a valid obstacle), the character will automatically perform a jump instead.
• How It Works?
-
When the player presses the Jump Input, the system first checks for Vaulting or Mantling opportunities using traces.
-
If no vault or mantle option is detected, the player proceeds with a jump animation.

• Jump Variations
Idle Jump.
- If the character is standing still (Idle state), the system plays an Idle Jump animation.
- This animation emphasizes a vertical take-off with minimal forward momentum.
Running Jump.
- If the character is moving (Running, or Sprinting), the system plays a Running Jump animation.
- This animation includes forward momentum for a more natural feel.

• Landing Variations
The landing animation changes based on the height the character falls from:
Soft/Hard Landing
- If the fall height is minimal, the system plays a soft or normal landing animation.
Roll Landing
- If the fall height is significant, the system transitions into a roll landing animation, helping maintain momentum and realism.
Summary
If the player has enough speed and jumps toward an object, they will vault. If they don’t have enough speed but a climbable surface is detected, they will mantle. If no object is found, the player will simply jump, with animations adapting to idle, running, or landing height.
--