class_pinjoint3d.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. Pin joint for 3D PhysicsBodies.
  11. Description
  12. -----------
  13. Pin joint for 3D rigid bodies. It pins 2 bodies (dynamic or static) together. See also :ref:`Generic6DOFJoint3D<class_Generic6DOFJoint3D>`.
  14. Properties
  15. ----------
  16. +---------------------------+-----------------------------------------------------------------------------+---------+
  17. | :ref:`float<class_float>` | :ref:`params/bias<class_PinJoint3D_property_params/bias>` | ``0.3`` |
  18. +---------------------------+-----------------------------------------------------------------------------+---------+
  19. | :ref:`float<class_float>` | :ref:`params/damping<class_PinJoint3D_property_params/damping>` | ``1.0`` |
  20. +---------------------------+-----------------------------------------------------------------------------+---------+
  21. | :ref:`float<class_float>` | :ref:`params/impulse_clamp<class_PinJoint3D_property_params/impulse_clamp>` | ``0.0`` |
  22. +---------------------------+-----------------------------------------------------------------------------+---------+
  23. Methods
  24. -------
  25. +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`get_param<class_PinJoint3D_method_get_param>` **(** :ref:`Param<enum_PinJoint3D_Param>` param **)** |const| |
  27. +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`set_param<class_PinJoint3D_method_set_param>` **(** :ref:`Param<enum_PinJoint3D_Param>` param, :ref:`float<class_float>` value **)** |
  29. +---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  30. Enumerations
  31. ------------
  32. .. _enum_PinJoint3D_Param:
  33. .. _class_PinJoint3D_constant_PARAM_BIAS:
  34. .. _class_PinJoint3D_constant_PARAM_DAMPING:
  35. .. _class_PinJoint3D_constant_PARAM_IMPULSE_CLAMP:
  36. enum **Param**:
  37. - **PARAM_BIAS** = **0** --- The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  38. - **PARAM_DAMPING** = **1** --- The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  39. - **PARAM_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint3D produces.
  40. Property Descriptions
  41. ---------------------
  42. .. _class_PinJoint3D_property_params/bias:
  43. - :ref:`float<class_float>` **params/bias**
  44. +-----------+------------------+
  45. | *Default* | ``0.3`` |
  46. +-----------+------------------+
  47. | *Setter* | set_param(value) |
  48. +-----------+------------------+
  49. | *Getter* | get_param() |
  50. +-----------+------------------+
  51. The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  52. ----
  53. .. _class_PinJoint3D_property_params/damping:
  54. - :ref:`float<class_float>` **params/damping**
  55. +-----------+------------------+
  56. | *Default* | ``1.0`` |
  57. +-----------+------------------+
  58. | *Setter* | set_param(value) |
  59. +-----------+------------------+
  60. | *Getter* | get_param() |
  61. +-----------+------------------+
  62. The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  63. ----
  64. .. _class_PinJoint3D_property_params/impulse_clamp:
  65. - :ref:`float<class_float>` **params/impulse_clamp**
  66. +-----------+------------------+
  67. | *Default* | ``0.0`` |
  68. +-----------+------------------+
  69. | *Setter* | set_param(value) |
  70. +-----------+------------------+
  71. | *Getter* | get_param() |
  72. +-----------+------------------+
  73. If above 0, this value is the maximum value for an impulse that this Joint3D produces.
  74. Method Descriptions
  75. -------------------
  76. .. _class_PinJoint3D_method_get_param:
  77. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_PinJoint3D_Param>` param **)** |const|
  78. Returns the value of the specified parameter.
  79. ----
  80. .. _class_PinJoint3D_method_set_param:
  81. - void **set_param** **(** :ref:`Param<enum_PinJoint3D_Param>` param, :ref:`float<class_float>` value **)**
  82. Sets the value of the specified parameter.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  88. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`