Crouch Height
Kind: Modifier · Add Component: Character Modules > Modifiers > Crouch Height
Lowers the character's shape while crouching. Crawl spaces become part of the level.
Makes the character's shape lower while crouching, sliding or rolling, and only stands it up again when there is room. Crawl spaces are built for it.
Inspector
▼Crouch Height
CharacterCharacter (Character Motor)
Low Height1.1
Origin. Half-Life (1998): ducking shrinks the player's box.
How it works
Changes every state: a lower collision shape; stands up only where there is room.
Crouch Height: while the character is low (crouching, sliding, rolling: any state with the Crouched flag), its collision shape is lowHeight tall, so it fits through low gaps. It stands up again only where there is room: under a low ceiling the state machine keeps it low (no standing state may start) and Crouch holds even with crouch let go. The camera's eye eases down with it; Hull Body keeps the body you see the same shape.
Combine it
- Used by the presets: Retro Platformer, Modern Platformer.
Properties
| Property | Description | Range | Default |
|---|---|---|---|
| Character | The character this module belongs to. Drag its Character Motor here. | None | |
| Low Height | Height of the collision shape while the character is low, metres. | 0.1 or more | 1.1 |