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

movePose

movePose<Target>(writer, entity, poseChanges): BodyRefusal | null

Moves entity to pose through the door its body takes: a body by its next pose, which the physics step moves it to, pushing what it meets, and an entity with no body by its transform, at once. A body that is not kinematic refuses, as setNextPose does: by type where its spawn branded its kind, and at run time otherwise. Nothing moves where writer is no authority over the entity, such as a page’s step over one the room streams. What a spin, a bob or a track moves an entity by, as Unity’s Rigidbody.MovePosition beside setting a transform. Returns null, or in a deployed world the reason setNextPose refused.

Type Parameter
Target extends Entity
Parameter Type
writer Authority | SystemStep
entity BodyTarget<Target, Kinematic>
poseChanges PoseChanges

BodyRefusal | null