Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

CharacterCapsuleTrait

const CharacterCapsuleTrait: Trait<{ collisionMask: () => CollisionMask | null; height: number; radius: number; }>

A character’s capsule: what it is cut to and the layers it meets. A character without one moves in defaultCharacterCapsule. What it steps over and climbs is the controller’s, in CharacterControllerTrait. A radius or height left at 0 is the measured size its ModelTrait’s name is registered with, or defaultCharacterCapsule’s where none is, taken when its capsule is first cut. A radius over half the height is cut to half.