Skip to content

Body

const Body: Trait<{ climb: number; collides: () => readonly CollisionLayer[]; height: number; radius: number; step: number; }>

Defined in: packages/engine/src/gameplay/physics/traits.ts:46

A walker’s body: what its capsule is cut to and what it steps over, the steepest ground in degrees it walks on, and the layers it collides with. A walker without one moves in defaultWalkerBody. A radius or height left at 0 is its Model’s from the kit’s sizes table, or defaultWalkerBody’s where the kit has no such model, taken when its capsule is first cut. A radius over half the height is cut to half.