.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_PinJoint2D: PinJoint2D ========== **Inherits:** :ref:`Joint2D` **<** :ref:`Node2D` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Pin Joint for 2D Shapes. Member Functions ---------------- +----------------------------+-----------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_softness` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------+ | void | :ref:`set_softness` **(** :ref:`float` softness **)** | +----------------------------+-----------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **softness** Description ----------- Pin Joint for 2D Rigid Bodies. It pins 2 bodies (rigid or static) together, or a single body to a fixed position in space. Member Function Description --------------------------- .. _class_PinJoint2D_get_softness: - :ref:`float` **get_softness** **(** **)** const .. _class_PinJoint2D_set_softness: - void **set_softness** **(** :ref:`float` softness **)**