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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
JointOptions |
Returns
Section titled “Returns”null
Example
Section titled “Example”<Entity prefab={gate}><Joint type={JointType.Hinge} anchor={[-0.6, 0, 0]} /></Entity>