class_pinjoint2d.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_PinJoint2D:
  4. PinJoint2D
  5. ==========
  6. **Inherits:** :ref:`Joint2D<class_joint2d>` **<** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Pin Joint for 2D Shapes.
  11. Member Functions
  12. ----------------
  13. +----------------------------+-----------------------------------------------------------------------------------------------------+
  14. | :ref:`float<class_float>` | :ref:`get_softness<class_PinJoint2D_get_softness>` **(** **)** const |
  15. +----------------------------+-----------------------------------------------------------------------------------------------------+
  16. | void | :ref:`set_softness<class_PinJoint2D_set_softness>` **(** :ref:`float<class_float>` softness **)** |
  17. +----------------------------+-----------------------------------------------------------------------------------------------------+
  18. Description
  19. -----------
  20. Pin Joint for 2D Rigid Bodies. It pins 2 bodies (rigid or static) together, or a single body to a fixed position in space.
  21. Member Function Description
  22. ---------------------------
  23. .. _class_PinJoint2D_get_softness:
  24. - :ref:`float<class_float>` **get_softness** **(** **)** const
  25. .. _class_PinJoint2D_set_softness:
  26. - void **set_softness** **(** :ref:`float<class_float>` softness **)**