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

JointChanges

What setJoint changes: a hinge’s, a slider’s or a ball-and-socket’s motor and limits, each in its type’s shape, a spring’s and a rope’s lengths, and what breaks it. Limits replace the joint’s whole; a motor changes the fields it names.

Property Type Description
breakForce? number | null Null never breaks on force.
breakTorque? number | null -
collideConnected? boolean -
damping? number -
length? number -
limits? Exclusive<JointLimits, BallAndSocketLimits> | Exclusive<BallAndSocketLimits, JointLimits> | null -
motor? Exclusive<JointMotor, BallAndSocketMotor> | Exclusive<BallAndSocketMotor, JointMotor> | null -
restLength? number -
stiffness? number -