Constraints make motion legible.
This route turns Rapier's joint API into a controlled chain experiment: typed anchors, constrained degrees of freedom, motor and limit settings, contact policy, and explicit joint removal and re-attachment.
Preparing the chain, joint descriptors, and RapierPhysics...
- physics
- -
- bodies
- -
- joints
- -
- type
- -
- motor
- -
- contacts
- -
- impulses
- -
- fps
- -
Select a link to inspect its body, parent joint, and anchor path.
await RapierPhysics()create gravity worldphysics.addMesh(...)register rigid bodiesRAPIER.JointData.*(...)describe joint anchorsworld.createImpulseJoint(...)connect two bodiesjoint.configureMotorVelocity(...)drive a DOFjoint.setLimits(...)bound a DOFworld.removeImpulseJoint(...)detach constraintnew RapierHelper(world)inspect collider topologySpherical, revolute, prismatic, rope, and spring descriptors all reuse the same six-body chain. The visible anchor markers are derived from the local anchor vectors passed into JointData.
Rapier is loading. The helper becomes available only with a live Rapier world.
Based on the official Rapier joints example and joint API. The CPU fallback preserves the chain controls and labels, but it does not claim full constraint-solver parity.