CMCharacter Modules 0.1.0

Character Surface

Kind: World component · Add Component: Character Modules > World > Character Surface

Gives a floor its own feel: ice, slow ground, soft landings. Surfaces become part of the challenge.

Gives a floor its own feel: ice, slow ground, or no fall damage on landing.

Inspector
▼Character Surface⋮
SlipperinessNormal ▾
Friction1
Acceleration1
Footstep(empty)
No Fall DamageOff ▾
The Character Surface component in the Inspector, with its defaults.
Origin. Super Mario 64 (1996) ice and sand.

How it works

What a surface is like to walk on. Put it on a collider (or a parent of colliders); characters standing on it read it through the ground sensor. Surfaces without one behave normally.

Properties

PropertyDescriptionRangeDefault
SlipperinessSurface class for characters that tell them apart: where slopes start and sliding is forced, braking.Normal
FrictionMultiplies ground friction. Ice: about 0.05. 1: normal.0 or more1
AccelerationMultiplies ground acceleration (grip). Ice: about 0.2. 1: normal.0 or more1
FootstepName of the footstep sound set, e.g. concrete, metal, grass. Empty: default.(empty)
No Fall DamageLanding on this surface never causes fall damage (water, mattresses, the 'no damage' surface flag of arena shooters).Off

Additional resources