CMCharacter Modules 0.1.0

Mantle

Kind: State · Add Component: Character Modules > States > Mantle

Climbs onto obstacles up to chest height without an aimed jump. Obstacles stop being walls to hop at.

Climbing onto an obstacle by running into it (knee high) or with Jump (up to chest height), without a jump the player has to aim. Obstacles stop being walls the player hops at.

Inspector
▼Mantle⋮
CharacterCharacter (Character Motor)
Auto Height0.5
Max Height1.4
Reach0.3
Max Top Slope30
Low Time0.25
High Time0.9
Inset0.3
Speed Kept0.7
The Mantle component in the Inspector, with its defaults.
Origin. Mirror's Edge (2008) and Assassin's Creed (2007); modern shooters vault the same way.

How it works

An action of Walking. Starts from any state, on: moving into a low obstacle; Jump for a higher one. Committed until it is on top. Ends on top of the obstacle, then the Walking mode.

Mantle: climbing onto an obstacle too high to step up, as in cinematic third-person adventures. Moving into an obstacle up to autoHeight (about knee height) climbs it by itself, barely a hitch in the run; a higher one, up to maxHeight (about chest height), needs Jump pressed while moving into it. Higher still is a jump and a Ledge Grab. The character rises over the edge and steps onto the top, faster for low obstacles than for high ones, and keeps some of its run speed. It needs room to stand on top and above where it starts. It cannot be cancelled.

Numbers from the traversal study (D57 to D62; the heights are a rule of the genre, the times are estimates).

Combine it

  • Needs: Ground Move. The Inspector warns while one is missing.
  • Priority 21: when several states could run, the highest priority wins (see How modules combine).
  • Used by the presets: Traversal Adventure.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Auto HeightObstacles up to this high are climbed by moving into them, no button, metres.0 or more0.5
Max HeightObstacles up to this high are climbed with Jump while moving into them, metres.0 or more1.4
ReachHow far ahead of the body an obstacle is noticed, metres.0 or more0.3
Max Top SlopeSteepest top that can be climbed onto, degrees.0 to 9030
Low TimeSeconds a mantle at the step height takes.0.01 or more0.25
High TimeSeconds a mantle at the highest height takes.0.01 or more0.9
InsetHow far past the edge the mantle ends, metres.0 or more0.3
Speed KeptShare of the run speed kept after the mantle.0 to 10.7

Additional resources