class_pinjoint.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PinJoint.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PinJoint:
  6. PinJoint
  7. ========
  8. **Inherits:** :ref:`Joint<class_Joint>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Pin Joint for 3D Shapes.
  13. Properties
  14. ----------
  15. +---------------------------+---------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`params/bias<class_PinJoint_property_params/bias>` |
  17. +---------------------------+---------------------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`params/damping<class_PinJoint_property_params/damping>` |
  19. +---------------------------+---------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`params/impulse_clamp<class_PinJoint_property_params/impulse_clamp>` |
  21. +---------------------------+---------------------------------------------------------------------------+
  22. Enumerations
  23. ------------
  24. .. _enum_PinJoint_Param:
  25. .. _class_PinJoint_constant_PARAM_BIAS:
  26. .. _class_PinJoint_constant_PARAM_DAMPING:
  27. .. _class_PinJoint_constant_PARAM_IMPULSE_CLAMP:
  28. enum **Param**:
  29. - **PARAM_BIAS** = **0** --- The force with which the pinned objects stay in positional relation to each other.
  30. The higher, the stronger.
  31. - **PARAM_DAMPING** = **1** --- The force with which the pinned objects stay in velocity relation to each other.
  32. The higher, the stronger.
  33. - **PARAM_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint produces.
  34. Description
  35. -----------
  36. Pin Joint for 3D Rigid Bodies. It pins 2 bodies (rigid or static) together.
  37. Property Descriptions
  38. ---------------------
  39. .. _class_PinJoint_property_params/bias:
  40. - :ref:`float<class_float>` **params/bias**
  41. +----------+------------------+
  42. | *Setter* | set_param(value) |
  43. +----------+------------------+
  44. | *Getter* | get_param() |
  45. +----------+------------------+
  46. The force with which the pinned objects stay in positional relation to each other.
  47. The higher, the stronger.
  48. ----
  49. .. _class_PinJoint_property_params/damping:
  50. - :ref:`float<class_float>` **params/damping**
  51. +----------+------------------+
  52. | *Setter* | set_param(value) |
  53. +----------+------------------+
  54. | *Getter* | get_param() |
  55. +----------+------------------+
  56. The force with which the pinned objects stay in velocity relation to each other.
  57. The higher, the stronger.
  58. ----
  59. .. _class_PinJoint_property_params/impulse_clamp:
  60. - :ref:`float<class_float>` **params/impulse_clamp**
  61. +----------+------------------+
  62. | *Setter* | set_param(value) |
  63. +----------+------------------+
  64. | *Getter* | get_param() |
  65. +----------+------------------+
  66. If above 0, this value is the maximum value for an impulse that this Joint produces.