A physics joint that attaches two 2D physics bodies at a single point, allowing them to freely rotate.
A physics joint that attaches two 2D physics bodies at a single point, allowing them to freely rotate. For example, a [RigidBody2D] can be attached to a [StaticBody2D] to create a pendulum or a seesaw.
- If [code]true[/code], the pin maximum and minimum rotation, defined by [member angular_limit_lower] and [member angular_limit_upper] are applied.
- The minimum rotation. Only active if [member angular_limit_enabled] is [code]true[/code].
- The maximum rotation. Only active if [member angular_limit_enabled] is [code]true[/code].
- When activated, a motor turns the pin.
- Target speed for the motor. In radians per second.
- The higher this value, the more the bond to the pinned partner can flex.