class_pinjoint3d.rst 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PinJoint3D.xml.
  6. .. _class_PinJoint3D:
  7. PinJoint3D
  8. ==========
  9. **Inherits:** :ref:`Joint3D<class_Joint3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate. For example, a :ref:`RigidBody3D<class_RigidBody3D>` can be attached to a :ref:`StaticBody3D<class_StaticBody3D>` to create a pendulum or a seesaw.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+-----------------------------------------------------------------------------+---------+
  21. | :ref:`float<class_float>` | :ref:`params/bias<class_PinJoint3D_property_params/bias>` | ``0.3`` |
  22. +---------------------------+-----------------------------------------------------------------------------+---------+
  23. | :ref:`float<class_float>` | :ref:`params/damping<class_PinJoint3D_property_params/damping>` | ``1.0`` |
  24. +---------------------------+-----------------------------------------------------------------------------+---------+
  25. | :ref:`float<class_float>` | :ref:`params/impulse_clamp<class_PinJoint3D_property_params/impulse_clamp>` | ``0.0`` |
  26. +---------------------------+-----------------------------------------------------------------------------+---------+
  27. .. rst-class:: classref-reftable-group
  28. Methods
  29. -------
  30. .. table::
  31. :widths: auto
  32. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`get_param<class_PinJoint3D_method_get_param>`\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`\ ) |const| |
  34. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
  35. | |void| | :ref:`set_param<class_PinJoint3D_method_set_param>`\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) |
  36. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Enumerations
  41. ------------
  42. .. _enum_PinJoint3D_Param:
  43. .. rst-class:: classref-enumeration
  44. enum **Param**: :ref:`🔗<enum_PinJoint3D_Param>`
  45. .. _class_PinJoint3D_constant_PARAM_BIAS:
  46. .. rst-class:: classref-enumeration-constant
  47. :ref:`Param<enum_PinJoint3D_Param>` **PARAM_BIAS** = ``0``
  48. The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  49. .. _class_PinJoint3D_constant_PARAM_DAMPING:
  50. .. rst-class:: classref-enumeration-constant
  51. :ref:`Param<enum_PinJoint3D_Param>` **PARAM_DAMPING** = ``1``
  52. The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  53. .. _class_PinJoint3D_constant_PARAM_IMPULSE_CLAMP:
  54. .. rst-class:: classref-enumeration-constant
  55. :ref:`Param<enum_PinJoint3D_Param>` **PARAM_IMPULSE_CLAMP** = ``2``
  56. If above 0, this value is the maximum value for an impulse that this Joint3D produces.
  57. .. rst-class:: classref-section-separator
  58. ----
  59. .. rst-class:: classref-descriptions-group
  60. Property Descriptions
  61. ---------------------
  62. .. _class_PinJoint3D_property_params/bias:
  63. .. rst-class:: classref-property
  64. :ref:`float<class_float>` **params/bias** = ``0.3`` :ref:`🔗<class_PinJoint3D_property_params/bias>`
  65. .. rst-class:: classref-property-setget
  66. - |void| **set_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  67. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`\ ) |const|
  68. The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_PinJoint3D_property_params/damping:
  72. .. rst-class:: classref-property
  73. :ref:`float<class_float>` **params/damping** = ``1.0`` :ref:`🔗<class_PinJoint3D_property_params/damping>`
  74. .. rst-class:: classref-property-setget
  75. - |void| **set_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  76. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`\ ) |const|
  77. The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_PinJoint3D_property_params/impulse_clamp:
  81. .. rst-class:: classref-property
  82. :ref:`float<class_float>` **params/impulse_clamp** = ``0.0`` :ref:`🔗<class_PinJoint3D_property_params/impulse_clamp>`
  83. .. rst-class:: classref-property-setget
  84. - |void| **set_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  85. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`\ ) |const|
  86. If above 0, this value is the maximum value for an impulse that this Joint3D produces.
  87. .. rst-class:: classref-section-separator
  88. ----
  89. .. rst-class:: classref-descriptions-group
  90. Method Descriptions
  91. -------------------
  92. .. _class_PinJoint3D_method_get_param:
  93. .. rst-class:: classref-method
  94. :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`\ ) |const| :ref:`🔗<class_PinJoint3D_method_get_param>`
  95. Returns the value of the specified parameter.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_PinJoint3D_method_set_param:
  99. .. rst-class:: classref-method
  100. |void| **set_param**\ (\ param\: :ref:`Param<enum_PinJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_PinJoint3D_method_set_param>`
  101. Sets the value of the specified parameter.
  102. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  103. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  104. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  105. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  106. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  107. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  108. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  109. .. |void| replace:: :abbr:`void (No return value.)`