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

ActorMotion

What a step carries over to the next about one actor.

Property Type Description
fallSpeed number Metres a second it is falling at, negative downward.
floor? number The handle of the collider its last floor read stood it on, unset where it left it in the air: what carries it, where it is a kinematic body.
floorNormal Vector The unit normal of the floor under it, up where it has none.
floorRead boolean Whether a step has read the floor under it since its body was built or last changed, and since its floor or its perch went or its perch moved. Until one has, standing still does not skip the walk, so ground too steep for its climb slides it and it falls where nothing holds it.
grounded boolean Whether the last step ended with it on the ground.
heldSeconds number Seconds its walk along its path has stood held by other walkers, as the controller’s heldPassSeconds reads them: past that, its walk passes through walkers until it stands clear of them, and then this goes back to 0. A move reads it from CharacterTrait and writes it back, so a correction restores it.
perch? number The handle of the walker’s capsule that holds it, unset where none does: its floor itself, or one whose side it rests on over ground within its step, and the ground under it is its floor. A walker moves without carrying it.
perchAt Vector Where that capsule stood when it was last read holding it.