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
LadderCharacterCharacter (Character Motor)
Climb Speed3
Side Speed1.5
Look Down Angle30
Push Off Speed4
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
| Property | Description | Range | Default |
|---|---|---|---|
| Character | The character this module belongs to. Drag its Character Motor here. | None | |
| Climb Speed | Climbing speed, m/s. | 0 or more | 3 |
| Side Speed | Sideways speed on the ladder, m/s. | 0 or more | 1.5 |
| Look Down Angle | Looking further down than this, in degrees, makes forward climb down. | 0 to 89 | 30 |
| Push Off Speed | Speed of pushing off with jump, m/s. | 0 or more | 4 |