CMCharacter Modules 0.1.0

Wading

Kind: Modifier · Add Component: Character Modules > Modifiers > Wading

Slows the character in shallow water. Shallows feel different from dry ground.

Slows the character in water up to the knees, without swimming. Shallows look and feel different from dry ground.

Inspector
▼Wading⋮
CharacterCharacter (Character Motor)
Slowest0.5
Deepest0.6
The Wading component in the Inspector, with its defaults.
Origin. Half-Life (1998) slows the player by how deep the water is.

How it works

Changes the Walking mode: shallow water slows walking.

Wading: water slows walking, more the deeper it is: full speed on dry land, slowest times full speed when the water reaches the Swim state's depth. Needs a sensor that reports water (the Trigger Sensor).

Combine it

  • Needs: Volume Sensor. The Inspector warns while one is missing.
  • 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
SlowestSpeed scale in water up to the chest.0.1 to 10.5
DeepestDepth (fraction of the character's height) at which the slowest speed is reached.0.1 to 10.6

Additional resources