CMCharacter Modules 0.1.0

Water Volume

Kind: World component · Add Component: Character Modules > World > Water Volume

Marks water to wade or swim in. Shallows and depths play differently.

Marks water: the character wades in the shallows and swims in the deep.

Inspector
▼Water Volume⋮
The Water Volume component in the Inspector, with its defaults.
Origin. Quake (1996) water brushes.

How it works

Water: a trigger collider whose top is the water surface. Characters with a Trigger Sensor know how deep they are in it; the Swim state takes over when deep enough, and Wading slows walking in shallow water.

Additional resources