CMCharacter Modules 0.1.0

Character Brush

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

Gives CSG Brush pieces the same surface settings. Brush-built levels keep their ice and soft landings.

Lets a CSG Brush level piece carry the same surface settings, so a level built from brushes keeps its ice and its soft landings.

Inspector
▼Character Brush⋮
KindSurface ▾
Surface
Friction1
Acceleration1
Footstep(empty)
No Fall DamageOff ▾
Jump Pad
Launch(0, 14, 0)
Keep HorizontalOn ▾
Damage
Damage Per Second25
The Character Brush component in the Inspector, with its defaults.
Origin. The CSG Brush package.

How it works

The character's data on a CSG brush, or on a parent of brushes, which tags them all: what a surface is like to walk on, or which volume the brush is (water, ladder, jump pad, damage, kill). It rides onto every collider piece the brush generates as the ordinary World components (Character Surface, Water Volume, Ladder Volume, ...), so the character reads brushes exactly as it reads hand-placed colliders. A volume makes the brush a trigger.

Properties

PropertyDescriptionRangeDefault
KindWhat the brush is to the character.Surface
FrictionMultiplies ground friction. Ice: about 0.05.0 or more1
AccelerationMultiplies ground acceleration. Ice: about 0.2.0 or more1
FootstepName of the footstep sound set.(empty)
No Fall DamageLanding on this surface never causes fall damage.Off
LaunchLaunch velocity in this object's space, m/s.(0, 14, 0)
Keep HorizontalKeep the character's horizontal speed.On
Damage Per SecondHealth lost per second inside the volume.0 or more25

Additional resources