class_pinjoint2d.rst 1.7 KB

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