CMCharacter Modules 0.1.0

Ladder

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

Climbs ladders by moving into them. Height is reached without jumping.

Climbing a ladder by moving into it and holding up; pushing off or reaching the top or foot ends it.

Inspector
▼Ladder⋮
CharacterCharacter (Character Motor)
Climb Speed3
Side Speed1.5
Look Down Angle30
Push Off Speed4
The Ladder component in the Inspector, with its defaults.
Origin. Donkey Kong (1981); Half-Life (1998) for ladders in 3D.

How it works

The Climbing mode: runs into a ladder.

Climbing a ladder, as in older PC shooters: walk into a ladder to grab it. Forward climbs up while looking ahead or up, and down while looking down; strafe moves sideways. There is no gravity on the ladder. Jump pushes off it. Forward also leans into the ladder, so climbing past the top carries the character onto the ledge.

Hooks called: ISpeedScale.

Combine it

  • Needs: Volume Sensor. The Inspector warns while one is missing.
  • Priority 24: when several states could run, the highest priority wins (see How modules combine).
  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Modern Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Climb SpeedClimbing speed, m/s.0 or more3
Side SpeedSideways speed on the ladder, m/s.0 or more1.5
Look Down AngleLooking further down than this, in degrees, makes forward climb down.0 to 8930
Push Off SpeedSpeed of pushing off with jump, m/s.0 or more4

Additional resources