class_generic6dofjoint.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Generic6DOFJoint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Generic6DOFJoint:
  5. Generic6DOFJoint
  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. The generic 6 degrees of freedom joint can implement a variety of joint-types by locking certain axes' rotation or translation.
  12. Member Variables
  13. ----------------
  14. .. _class_Generic6DOFJoint_angular_limit_x/damping:
  15. - :ref:`float<class_float>` **angular_limit_x/damping** - The amount of rotational damping across the x-axis.
  16. The lower, the longer an impulse from one side takes to travel to the other side.
  17. .. _class_Generic6DOFJoint_angular_limit_x/enabled:
  18. - :ref:`bool<class_bool>` **angular_limit_x/enabled** - If ``true`` rotation across the x-axis is enabled.
  19. .. _class_Generic6DOFJoint_angular_limit_x/erp:
  20. - :ref:`float<class_float>` **angular_limit_x/erp** - When rotating across x-axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
  21. .. _class_Generic6DOFJoint_angular_limit_x/force_limit:
  22. - :ref:`float<class_float>` **angular_limit_x/force_limit** - The maximum amount of force that can occur, when rotating around x-axis.
  23. .. _class_Generic6DOFJoint_angular_limit_x/lower_angle:
  24. - :ref:`float<class_float>` **angular_limit_x/lower_angle** - The minimum rotation in negative direction to break loose and rotate around the x-axis.
  25. .. _class_Generic6DOFJoint_angular_limit_x/restitution:
  26. - :ref:`float<class_float>` **angular_limit_x/restitution** - The amount of rotational restitution across the x-axis. The lower, the more restitution occurs.
  27. .. _class_Generic6DOFJoint_angular_limit_x/softness:
  28. - :ref:`float<class_float>` **angular_limit_x/softness** - The speed of all rotations across the x-axis.
  29. .. _class_Generic6DOFJoint_angular_limit_x/upper_angle:
  30. - :ref:`float<class_float>` **angular_limit_x/upper_angle** - The minimum rotation in positive direction to break loose and rotate around the x-axis.
  31. .. _class_Generic6DOFJoint_angular_limit_y/damping:
  32. - :ref:`float<class_float>` **angular_limit_y/damping** - The amount of rotational damping across the y-axis. The lower, the more dampening occurs.
  33. .. _class_Generic6DOFJoint_angular_limit_y/enabled:
  34. - :ref:`bool<class_bool>` **angular_limit_y/enabled** - If ``true`` rotation across the y-axis is enabled.
  35. .. _class_Generic6DOFJoint_angular_limit_y/erp:
  36. - :ref:`float<class_float>` **angular_limit_y/erp** - When rotating across y-axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
  37. .. _class_Generic6DOFJoint_angular_limit_y/force_limit:
  38. - :ref:`float<class_float>` **angular_limit_y/force_limit** - The maximum amount of force that can occur, when rotating around y-axis.
  39. .. _class_Generic6DOFJoint_angular_limit_y/lower_angle:
  40. - :ref:`float<class_float>` **angular_limit_y/lower_angle** - The minimum rotation in negative direction to break loose and rotate around the y-axis.
  41. .. _class_Generic6DOFJoint_angular_limit_y/restitution:
  42. - :ref:`float<class_float>` **angular_limit_y/restitution** - The amount of rotational restitution across the y-axis. The lower, the more restitution occurs.
  43. .. _class_Generic6DOFJoint_angular_limit_y/softness:
  44. - :ref:`float<class_float>` **angular_limit_y/softness** - The speed of all rotations across the y-axis.
  45. .. _class_Generic6DOFJoint_angular_limit_y/upper_angle:
  46. - :ref:`float<class_float>` **angular_limit_y/upper_angle** - The minimum rotation in positive direction to break loose and rotate around the y-axis.
  47. .. _class_Generic6DOFJoint_angular_limit_z/damping:
  48. - :ref:`float<class_float>` **angular_limit_z/damping** - The amount of rotational damping across the z-axis. The lower, the more dampening occurs.
  49. .. _class_Generic6DOFJoint_angular_limit_z/enabled:
  50. - :ref:`bool<class_bool>` **angular_limit_z/enabled** - If ``true`` rotation across the z-axis is enabled.
  51. .. _class_Generic6DOFJoint_angular_limit_z/erp:
  52. - :ref:`float<class_float>` **angular_limit_z/erp** - When rotating across z-axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
  53. .. _class_Generic6DOFJoint_angular_limit_z/force_limit:
  54. - :ref:`float<class_float>` **angular_limit_z/force_limit** - The maximum amount of force that can occur, when rotating around z-axis.
  55. .. _class_Generic6DOFJoint_angular_limit_z/lower_angle:
  56. - :ref:`float<class_float>` **angular_limit_z/lower_angle** - The minimum rotation in negative direction to break loose and rotate around the z-axis.
  57. .. _class_Generic6DOFJoint_angular_limit_z/restitution:
  58. - :ref:`float<class_float>` **angular_limit_z/restitution** - The amount of rotational restitution across the z-axis. The lower, the more restitution occurs.
  59. .. _class_Generic6DOFJoint_angular_limit_z/softness:
  60. - :ref:`float<class_float>` **angular_limit_z/softness** - The speed of all rotations across the z-axis.
  61. .. _class_Generic6DOFJoint_angular_limit_z/upper_angle:
  62. - :ref:`float<class_float>` **angular_limit_z/upper_angle** - The minimum rotation in positive direction to break loose and rotate around the z-axis.
  63. .. _class_Generic6DOFJoint_angular_motor_x/enabled:
  64. - :ref:`bool<class_bool>` **angular_motor_x/enabled** - If ``true`` a rotating motor at the x-axis is enabled.
  65. .. _class_Generic6DOFJoint_angular_motor_x/force_limit:
  66. - :ref:`float<class_float>` **angular_motor_x/force_limit** - Maximum acceleration for the motor at the x-axis.
  67. .. _class_Generic6DOFJoint_angular_motor_x/target_velocity:
  68. - :ref:`float<class_float>` **angular_motor_x/target_velocity** - Target speed for the motor at the x-axis.
  69. .. _class_Generic6DOFJoint_angular_motor_y/enabled:
  70. - :ref:`bool<class_bool>` **angular_motor_y/enabled** - If ``true`` a rotating motor at the y-axis is enabled.
  71. .. _class_Generic6DOFJoint_angular_motor_y/force_limit:
  72. - :ref:`float<class_float>` **angular_motor_y/force_limit** - Maximum acceleration for the motor at the y-axis.
  73. .. _class_Generic6DOFJoint_angular_motor_y/target_velocity:
  74. - :ref:`float<class_float>` **angular_motor_y/target_velocity** - Target speed for the motor at the y-axis.
  75. .. _class_Generic6DOFJoint_angular_motor_z/enabled:
  76. - :ref:`bool<class_bool>` **angular_motor_z/enabled** - If ``true`` a rotating motor at the z-axis is enabled.
  77. .. _class_Generic6DOFJoint_angular_motor_z/force_limit:
  78. - :ref:`float<class_float>` **angular_motor_z/force_limit** - Maximum acceleration for the motor at the z-axis.
  79. .. _class_Generic6DOFJoint_angular_motor_z/target_velocity:
  80. - :ref:`float<class_float>` **angular_motor_z/target_velocity** - Target speed for the motor at the z-axis.
  81. .. _class_Generic6DOFJoint_linear_limit_x/damping:
  82. - :ref:`float<class_float>` **linear_limit_x/damping** - The amount of damping that happens at the x-motion.
  83. .. _class_Generic6DOFJoint_linear_limit_x/enabled:
  84. - :ref:`bool<class_bool>` **linear_limit_x/enabled** - If ``true`` the linear motion across the x-axis is enabled.
  85. .. _class_Generic6DOFJoint_linear_limit_x/lower_distance:
  86. - :ref:`float<class_float>` **linear_limit_x/lower_distance** - The minimum difference between the pivot points' x-axis.
  87. .. _class_Generic6DOFJoint_linear_limit_x/restitution:
  88. - :ref:`float<class_float>` **linear_limit_x/restitution** - The amount of restitution on the x-axis movement The lower, the more momentum gets lost.
  89. .. _class_Generic6DOFJoint_linear_limit_x/softness:
  90. - :ref:`float<class_float>` **linear_limit_x/softness** - A factor applied to the movement across the x-axis The lower, the slower the movement.
  91. .. _class_Generic6DOFJoint_linear_limit_x/upper_distance:
  92. - :ref:`float<class_float>` **linear_limit_x/upper_distance** - The maximum difference between the pivot points' x-axis.
  93. .. _class_Generic6DOFJoint_linear_limit_y/damping:
  94. - :ref:`float<class_float>` **linear_limit_y/damping** - The amount of damping that happens at the y-motion.
  95. .. _class_Generic6DOFJoint_linear_limit_y/enabled:
  96. - :ref:`bool<class_bool>` **linear_limit_y/enabled** - If ``true`` the linear motion across the y-axis is enabled.
  97. .. _class_Generic6DOFJoint_linear_limit_y/lower_distance:
  98. - :ref:`float<class_float>` **linear_limit_y/lower_distance** - The minimum difference between the pivot points' y-axis.
  99. .. _class_Generic6DOFJoint_linear_limit_y/restitution:
  100. - :ref:`float<class_float>` **linear_limit_y/restitution** - The amount of restitution on the y-axis movement The lower, the more momentum gets lost.
  101. .. _class_Generic6DOFJoint_linear_limit_y/softness:
  102. - :ref:`float<class_float>` **linear_limit_y/softness** - A factor applied to the movement across the y-axis The lower, the slower the movement.
  103. .. _class_Generic6DOFJoint_linear_limit_y/upper_distance:
  104. - :ref:`float<class_float>` **linear_limit_y/upper_distance** - The maximum difference between the pivot points' y-axis.
  105. .. _class_Generic6DOFJoint_linear_limit_z/damping:
  106. - :ref:`float<class_float>` **linear_limit_z/damping** - The amount of damping that happens at the z-motion.
  107. .. _class_Generic6DOFJoint_linear_limit_z/enabled:
  108. - :ref:`bool<class_bool>` **linear_limit_z/enabled** - If ``true`` the linear motion across the z-axis is enabled.
  109. .. _class_Generic6DOFJoint_linear_limit_z/lower_distance:
  110. - :ref:`float<class_float>` **linear_limit_z/lower_distance** - The minimum difference between the pivot points' z-axis.
  111. .. _class_Generic6DOFJoint_linear_limit_z/restitution:
  112. - :ref:`float<class_float>` **linear_limit_z/restitution** - The amount of restitution on the z-axis movement The lower, the more momentum gets lost.
  113. .. _class_Generic6DOFJoint_linear_limit_z/softness:
  114. - :ref:`float<class_float>` **linear_limit_z/softness** - A factor applied to the movement across the z-axis The lower, the slower the movement.
  115. .. _class_Generic6DOFJoint_linear_limit_z/upper_distance:
  116. - :ref:`float<class_float>` **linear_limit_z/upper_distance** - The maximum difference between the pivot points' z-axis.
  117. Enums
  118. -----
  119. .. _enum_Generic6DOFJoint_Flag:
  120. enum **Flag**
  121. - **FLAG_ENABLE_LINEAR_LIMIT** = **0** --- If ``set`` there is linear motion possible within the given limits.
  122. - **FLAG_ENABLE_ANGULAR_LIMIT** = **1** --- If ``set`` there is rotational motion possible.
  123. - **FLAG_ENABLE_MOTOR** = **2** --- If ``set`` there is a rotational motor across these axes.
  124. - **FLAG_MAX** = **3** --- End flag of FLAG\_\* constants, used internally.
  125. .. _enum_Generic6DOFJoint_Param:
  126. enum **Param**
  127. - **PARAM_LINEAR_LOWER_LIMIT** = **0** --- The minimum difference between the pivot points' axes.
  128. - **PARAM_LINEAR_UPPER_LIMIT** = **1** --- The maximum difference between the pivot points' axes.
  129. - **PARAM_LINEAR_LIMIT_SOFTNESS** = **2** --- A factor applied to the movement across the axes The lower, the slower the movement.
  130. - **PARAM_LINEAR_RESTITUTION** = **3** --- The amount of restitution on the axes movement The lower, the more momentum gets lost.
  131. - **PARAM_LINEAR_DAMPING** = **4** --- The amount of damping that happens at the linear motion across the axes.
  132. - **PARAM_ANGULAR_LOWER_LIMIT** = **5** --- The minimum rotation in negative direction to break loose and rotate around the axes.
  133. - **PARAM_ANGULAR_UPPER_LIMIT** = **6** --- The minimum rotation in positive direction to break loose and rotate around the axes.
  134. - **PARAM_ANGULAR_LIMIT_SOFTNESS** = **7** --- The speed of all rotations across the axes.
  135. - **PARAM_ANGULAR_DAMPING** = **8** --- The amount of rotational damping across the axes. The lower, the more dampening occurs.
  136. - **PARAM_ANGULAR_RESTITUTION** = **9** --- The amount of rotational restitution across the axes. The lower, the more restitution occurs.
  137. - **PARAM_ANGULAR_FORCE_LIMIT** = **10** --- The maximum amount of force that can occur, when rotating around the axes.
  138. - **PARAM_ANGULAR_ERP** = **11** --- When rotating across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
  139. - **PARAM_ANGULAR_MOTOR_TARGET_VELOCITY** = **12** --- Target speed for the motor at the axes.
  140. - **PARAM_ANGULAR_MOTOR_FORCE_LIMIT** = **13** --- Maximum acceleration for the motor at the axes.
  141. - **PARAM_MAX** = **14** --- End flag of PARAM\_\* constants, used internally.
  142. Description
  143. -----------
  144. The first 3 dof axes are linear axes, which represent translation of Bodies, and the latter 3 dof axes represent the angular motion. Each axis can be either locked, or limited.