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

JointMotor

A hinge’s or a slider’s motor: it drives toward targetPosition, targetVelocity or both, with a stiffness and a damping that scale with mass, Rapier’s acceleration model, so one tuning moves a light gate and a heavy one alike, and never uses more than maxForce, a torque for a hinge.

Property Type Default value Description
damping? number 0 -
maxForce? number no cap Newtons, or newton-metres for a hinge.
stiffness? number 0 -
targetPosition? number 0 Radians for a hinge, metres for a slider.
targetVelocity? number 0 Radians or metres a second.