Skip to content

@modoki/engine / index / JointType2D

Type Alias: JointType2D

JointType2D = "spring" | "revolute" | "prismatic" | "fixed" | "rope"

2D joint type (Rapier impulse joints).

  • spring — soft distance spring between two anchor points (rest length + stiffness/damping).
  • revolute — hinge/pin: the two anchors coincide, bodies free to rotate about it.
  • prismatic — slider: relative motion locked to an axis, rotation locked.
  • fixed — weld: relative position + orientation locked.
  • rope — max-distance: bodies may approach but not exceed length.

Built with Modoki.