class_pinjoint.rst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PinJoint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PinJoint:
  5. PinJoint
  6. ========
  7. **Inherits:** :ref:`Joint<class_joint>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Pin Joint for 3D Shapes.
  12. Member Functions
  13. ----------------
  14. +----------------------------+-----------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_param<class_PinJoint_get_param>` **(** :ref:`int<class_int>` param **)** const |
  16. +----------------------------+-----------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_param<class_PinJoint_set_param>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  18. +----------------------------+-----------------------------------------------------------------------------------------------------------------------+
  19. Member Variables
  20. ----------------
  21. - :ref:`float<class_float>` **params/bias** - The force with wich the pinned objects stay in positional relation to each other.
  22. The higher, the stronger.
  23. - :ref:`float<class_float>` **params/damping** - The force with wich the pinned objects stay in velocity relation to each other.
  24. The higher, the stronger.
  25. - :ref:`float<class_float>` **params/impulse_clamp** - If above 0, this value is the maximum value for an impulse that this Joint produces.
  26. Numeric Constants
  27. -----------------
  28. - **PARAM_BIAS** = **0** --- The force with wich the pinned objects stay in positional relation to each other.
  29. The higher, the stronger.
  30. - **PARAM_DAMPING** = **1** --- The force with wich the pinned objects stay in velocity relation to each other.
  31. The higher, the stronger.
  32. - **PARAM_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint produces.
  33. Description
  34. -----------
  35. Pin Joint for 3D Rigid Bodies. It pins 2 bodies (rigid or static) together.
  36. Member Function Description
  37. ---------------------------
  38. .. _class_PinJoint_get_param:
  39. - :ref:`float<class_float>` **get_param** **(** :ref:`int<class_int>` param **)** const
  40. .. _class_PinJoint_set_param:
  41. - void **set_param** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**