Joints 2D

Joints are a link between two bodies which simulate realistic connection between them.
Currently supported joints are:

  • Distance Joint - keeps distance/length between the constrained bodies a constant or allows for extension/compression.
  • Revolute Joint - also known as hinge joint, pin a common rotation pivot for constrained bodies, useful for rotating blades, rope/chain segments etc.
  • Prismatic Joint - restrict movement of two bodies to a specific axis, useful for platforms, pistons etc.
  • Motor Joint - bodies try to match target position and rotation, can be used for yoyo, magnets, other returning objects etc.
  • Weld Joint - simulate rigid/elastic connection between bodies, restricting relative movement between them, can be used for breakable objects, procedural construction, spring rider and others.
  • Wheel Joint - simulate suspension which allows rotation of wheel, useful for making vehicles.