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

Joint

Joint(props): null

Joins the Entity it sits in to to, or to the world where to is left out, as createJoint does, for as long as it is mounted: a gate hinged on its post, a lid on its box. The world that decides the Entity makes the joint: a page makes one for a body it holds alone, and holds the one the room streams for any other. A change of a prop makes the joint again from where the bodies stand; a system changes a live joint with setJoint.

Parameter Type
props JointOptions

null

<Entity prefab={gate}><Joint type={JointType.Hinge} anchor={[-0.6, 0, 0]} /></Entity>