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

BodyChanges

BodyChanges = Partial<Omit<KinematicBodyOptions, "bodyType" | "collisionMask" | "motion" | "display"> & Omit<DynamicBodyOptions, "bodyType" | "collisionMask">> & object

What setBody changes: any of a body’s settings, its kind among them.

Name Type Description
bodyType? RigidBodyType | `${RigidBodyType}` -
collisionMask? CollisionMask | null Null meets every layer again.
display? Display | `${Display}` | DisplaySettings | null Null draws its flight at the page’s own tick again.
motion? BodyMotion | null Null drives it by setNextPose again, with its display.