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

ChaseProps

The body fields are the walker’s: the physics cuts its capsule to them, and a chaser that walks climbs and slides by them, from the next step after a change. A radius or height left out is the measured size the entity’s model is registered with, or the player’s character’s where it has none. Unless collisionMask names its layers, a chaser meets every layer but the characters’, the players’ among them.

Property Type Default value Description
collisionMask? CollisionMask | null every layer The layers its sweeps and contacts meet, null for every one. A chaser’s default leaves out both of the characters’ layers; a game lists characters.collisionLayers.players again for a body that blocks the character.
controller? Partial<{ floorSnapDistance: number; gravity: boolean; gravityScale: number; groundFriction: number; height: number; heldPassSeconds: number; jumpHeight: number; maxSlopeRadians: number; plane: Side | null; platformOnLeave: PlatformOnLeave; pushes: CollisionMask | null; separationSpeed: number; stepHeight: number; turnWithPlatform: boolean; }> undefined The character controller’s settings it walks by, each laid over its defaults: its step and its steepest slope.
height? number its model's Metres above the feet the head stands.
radius? number its model's Metres from the axis to the side.
reach? number 1 Metres from the character it stops at.
speed number undefined Metres a second toward its target.
targets? TargetFilter TargetKind.ControlledCharacters Who it chooses among, the nearest first: kinds and layers add, teams and rules narrow. TargetKind.None chooses nobody, so it follows only the target a system sets on its ChaseTrait.