# 2D Joints Pendulum chain with PinJoint2D constraints. ```{raw} html ▶ Run in browser ``` **Tags:** `2d` Demonstrates: - RigidBody2D physics bodies with automatic gravity - StaticBody2D as a fixed anchor point - PinJoint2D connecting bodies with Baumgarte-stabilized distance constraints - PhysicsServer handles all constraint solving automatically - Click-to-apply-force interaction on the bottom ball Controls: LMB - Apply impulse to the bottom ball R - Reset the chain ESC - Quit Run: uv run python examples/features/2d/joints.py ## Source ```{literalinclude} ../../examples/features/2d/joints.py :language: python :linenos: ```