Up to date

This page is up to date for Godot 4.1. If you still find outdated information, please open an issue.

PinJoint2D

Inherits: Joint2D < Node2D < CanvasItem < Node < Object

A physics joint that attaches two 2D physics bodies at a single point, allowing them to freely rotate.

Description

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.

Properties

float

softness

0.0


Property Descriptions

float softness = 0.0

  • void set_softness ( float value )

  • float get_softness ( )

The higher this value, the more the bond to the pinned partner can flex.