🔌Vault Component

Overview

This component is used to vault over obstacles. Add it directly to your character:

Inspector.

Vaulting Settings define properties to vault over obstacles:

Vaulting Settings.
  • Layer Mask: defines the collision mask.

  • Capsule Radius: radius for capsule trace.

  • Max/Min Obstacle Length: max and min allowed lengths of the obstacle.

  • Sphere Edge Check Radius: sphere trace radius to find the edges of the obstacle.

  • Max Allowed Start Length: max allowed distance between the front edge and the character.

  • Max/Min Allowed Start Height: max/min allowed height of the fron edge.

  • Close Edge Deviation: edge vertical offset.

  • Far Edge Offset: start vertical offset to find the rear edge.

  • Max/Min Allowed End Height: max/min allowed height of the rear edge.

How does it work?

The VaultComponent uses 3 stages to find all target points: Close Edge, Far Edge and End Point.

  1. Try to find an obstacle and the Close Edge.

  2. Try to find the End Point.

  3. Try to find the Far Edge

Motion Warping Asset Requirements

Vaulting over animation must have 3 Warp Phases.

  1. Go from current point to the Close Edge.

  2. Go from the Close Edge to the Far Edge.

  3. Go from the Far Edge to the End Point.

Last updated