Ground Snapping
Kind: Modifier · Add Component: Character Modules > Modifiers > Ground Snapping
Keeps the character on the ground going down stairs and over ramp tops. It can still jump there instead of being briefly airborne.
Keeps the character on the ground going down stairs and over the tops of ramps, instead of flying off for a moment. A character that leaves the ground on every step down cannot jump there.
Inspector
▼Ground Snapping
CharacterCharacter (Character Motor)
Max Snap Distance0.4
Origin. Source engine games such as Counter-Strike: Source (2004) and Half-Life 2 (2004) stay on the ground this way.
How it works
Changes every state on the ground: kept on the ground going downhill.
Ground Snapping (also "stick to ground"): while walking, pull the character down onto the ground below after each move. Without it the character launches off the top of a slope and walks down stairs in a series of small falls, as in classic arena shooters. Unity's CharacterController and most modern controllers snap.
Combine it
- Needs: Ground Sensor. The Inspector warns while one is missing.
- Used by the presets: 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 | |
| Max Snap Distance | Furthest drop the character sticks to while walking, metres. About the step height. | 0 or more | 0.4 |