class_sliderjoint3d.rst 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  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/SliderJoint3D.xml.
  6. .. _class_SliderJoint3D:
  7. SliderJoint3D
  8. =============
  9. **Inherits:** :ref:`Joint3D<class_Joint3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A physics joint that restricts the movement of a 3D physics body along an axis relative to another physics body.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A physics joint that restricts the movement of a 3D physics body along an axis relative to another physics body. For example, Body A could be a :ref:`StaticBody3D<class_StaticBody3D>` representing a piston base, while Body B could be a :ref:`RigidBody3D<class_RigidBody3D>` representing the piston head, moving up and down.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  21. | :ref:`float<class_float>` | :ref:`angular_limit/damping<class_SliderJoint3D_property_angular_limit/damping>` | ``0.0`` |
  22. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  23. | :ref:`float<class_float>` | :ref:`angular_limit/lower_angle<class_SliderJoint3D_property_angular_limit/lower_angle>` | ``0.0`` |
  24. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  25. | :ref:`float<class_float>` | :ref:`angular_limit/restitution<class_SliderJoint3D_property_angular_limit/restitution>` | ``0.7`` |
  26. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  27. | :ref:`float<class_float>` | :ref:`angular_limit/softness<class_SliderJoint3D_property_angular_limit/softness>` | ``1.0`` |
  28. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  29. | :ref:`float<class_float>` | :ref:`angular_limit/upper_angle<class_SliderJoint3D_property_angular_limit/upper_angle>` | ``0.0`` |
  30. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  31. | :ref:`float<class_float>` | :ref:`angular_motion/damping<class_SliderJoint3D_property_angular_motion/damping>` | ``1.0`` |
  32. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  33. | :ref:`float<class_float>` | :ref:`angular_motion/restitution<class_SliderJoint3D_property_angular_motion/restitution>` | ``0.7`` |
  34. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  35. | :ref:`float<class_float>` | :ref:`angular_motion/softness<class_SliderJoint3D_property_angular_motion/softness>` | ``1.0`` |
  36. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  37. | :ref:`float<class_float>` | :ref:`angular_ortho/damping<class_SliderJoint3D_property_angular_ortho/damping>` | ``1.0`` |
  38. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  39. | :ref:`float<class_float>` | :ref:`angular_ortho/restitution<class_SliderJoint3D_property_angular_ortho/restitution>` | ``0.7`` |
  40. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  41. | :ref:`float<class_float>` | :ref:`angular_ortho/softness<class_SliderJoint3D_property_angular_ortho/softness>` | ``1.0`` |
  42. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  43. | :ref:`float<class_float>` | :ref:`linear_limit/damping<class_SliderJoint3D_property_linear_limit/damping>` | ``1.0`` |
  44. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  45. | :ref:`float<class_float>` | :ref:`linear_limit/lower_distance<class_SliderJoint3D_property_linear_limit/lower_distance>` | ``-1.0`` |
  46. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  47. | :ref:`float<class_float>` | :ref:`linear_limit/restitution<class_SliderJoint3D_property_linear_limit/restitution>` | ``0.7`` |
  48. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  49. | :ref:`float<class_float>` | :ref:`linear_limit/softness<class_SliderJoint3D_property_linear_limit/softness>` | ``1.0`` |
  50. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  51. | :ref:`float<class_float>` | :ref:`linear_limit/upper_distance<class_SliderJoint3D_property_linear_limit/upper_distance>` | ``1.0`` |
  52. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  53. | :ref:`float<class_float>` | :ref:`linear_motion/damping<class_SliderJoint3D_property_linear_motion/damping>` | ``0.0`` |
  54. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  55. | :ref:`float<class_float>` | :ref:`linear_motion/restitution<class_SliderJoint3D_property_linear_motion/restitution>` | ``0.7`` |
  56. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  57. | :ref:`float<class_float>` | :ref:`linear_motion/softness<class_SliderJoint3D_property_linear_motion/softness>` | ``1.0`` |
  58. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  59. | :ref:`float<class_float>` | :ref:`linear_ortho/damping<class_SliderJoint3D_property_linear_ortho/damping>` | ``1.0`` |
  60. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  61. | :ref:`float<class_float>` | :ref:`linear_ortho/restitution<class_SliderJoint3D_property_linear_ortho/restitution>` | ``0.7`` |
  62. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  63. | :ref:`float<class_float>` | :ref:`linear_ortho/softness<class_SliderJoint3D_property_linear_ortho/softness>` | ``1.0`` |
  64. +---------------------------+----------------------------------------------------------------------------------------------+----------+
  65. .. rst-class:: classref-reftable-group
  66. Methods
  67. -------
  68. .. table::
  69. :widths: auto
  70. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`float<class_float>` | :ref:`get_param<class_SliderJoint3D_method_get_param>`\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const| |
  72. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | |void| | :ref:`set_param<class_SliderJoint3D_method_set_param>`\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) |
  74. +---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  75. .. rst-class:: classref-section-separator
  76. ----
  77. .. rst-class:: classref-descriptions-group
  78. Enumerations
  79. ------------
  80. .. _enum_SliderJoint3D_Param:
  81. .. rst-class:: classref-enumeration
  82. enum **Param**: :ref:`🔗<enum_SliderJoint3D_Param>`
  83. .. _class_SliderJoint3D_constant_PARAM_LINEAR_LIMIT_UPPER:
  84. .. rst-class:: classref-enumeration-constant
  85. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_LIMIT_UPPER** = ``0``
  86. Constant for accessing :ref:`linear_limit/upper_distance<class_SliderJoint3D_property_linear_limit/upper_distance>`. The maximum difference between the pivot points on their X axis before damping happens.
  87. .. _class_SliderJoint3D_constant_PARAM_LINEAR_LIMIT_LOWER:
  88. .. rst-class:: classref-enumeration-constant
  89. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_LIMIT_LOWER** = ``1``
  90. Constant for accessing :ref:`linear_limit/lower_distance<class_SliderJoint3D_property_linear_limit/lower_distance>`. The minimum difference between the pivot points on their X axis before damping happens.
  91. .. _class_SliderJoint3D_constant_PARAM_LINEAR_LIMIT_SOFTNESS:
  92. .. rst-class:: classref-enumeration-constant
  93. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_LIMIT_SOFTNESS** = ``2``
  94. Constant for accessing :ref:`linear_limit/softness<class_SliderJoint3D_property_linear_limit/softness>`. A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  95. .. _class_SliderJoint3D_constant_PARAM_LINEAR_LIMIT_RESTITUTION:
  96. .. rst-class:: classref-enumeration-constant
  97. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_LIMIT_RESTITUTION** = ``3``
  98. Constant for accessing :ref:`linear_limit/restitution<class_SliderJoint3D_property_linear_limit/restitution>`. The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
  99. .. _class_SliderJoint3D_constant_PARAM_LINEAR_LIMIT_DAMPING:
  100. .. rst-class:: classref-enumeration-constant
  101. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_LIMIT_DAMPING** = ``4``
  102. Constant for accessing :ref:`linear_limit/damping<class_SliderJoint3D_property_linear_limit/damping>`. The amount of damping once the slider limits are surpassed.
  103. .. _class_SliderJoint3D_constant_PARAM_LINEAR_MOTION_SOFTNESS:
  104. .. rst-class:: classref-enumeration-constant
  105. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_MOTION_SOFTNESS** = ``5``
  106. Constant for accessing :ref:`linear_motion/softness<class_SliderJoint3D_property_linear_motion/softness>`. A factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
  107. .. _class_SliderJoint3D_constant_PARAM_LINEAR_MOTION_RESTITUTION:
  108. .. rst-class:: classref-enumeration-constant
  109. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_MOTION_RESTITUTION** = ``6``
  110. Constant for accessing :ref:`linear_motion/restitution<class_SliderJoint3D_property_linear_motion/restitution>`. The amount of restitution inside the slider limits.
  111. .. _class_SliderJoint3D_constant_PARAM_LINEAR_MOTION_DAMPING:
  112. .. rst-class:: classref-enumeration-constant
  113. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_MOTION_DAMPING** = ``7``
  114. Constant for accessing :ref:`linear_motion/damping<class_SliderJoint3D_property_linear_motion/damping>`. The amount of damping inside the slider limits.
  115. .. _class_SliderJoint3D_constant_PARAM_LINEAR_ORTHOGONAL_SOFTNESS:
  116. .. rst-class:: classref-enumeration-constant
  117. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_ORTHOGONAL_SOFTNESS** = ``8``
  118. Constant for accessing :ref:`linear_ortho/softness<class_SliderJoint3D_property_linear_ortho/softness>`. A factor applied to the movement across axes orthogonal to the slider.
  119. .. _class_SliderJoint3D_constant_PARAM_LINEAR_ORTHOGONAL_RESTITUTION:
  120. .. rst-class:: classref-enumeration-constant
  121. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_ORTHOGONAL_RESTITUTION** = ``9``
  122. Constant for accessing :ref:`linear_motion/restitution<class_SliderJoint3D_property_linear_motion/restitution>`. The amount of restitution when movement is across axes orthogonal to the slider.
  123. .. _class_SliderJoint3D_constant_PARAM_LINEAR_ORTHOGONAL_DAMPING:
  124. .. rst-class:: classref-enumeration-constant
  125. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_LINEAR_ORTHOGONAL_DAMPING** = ``10``
  126. Constant for accessing :ref:`linear_motion/damping<class_SliderJoint3D_property_linear_motion/damping>`. The amount of damping when movement is across axes orthogonal to the slider.
  127. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_LIMIT_UPPER:
  128. .. rst-class:: classref-enumeration-constant
  129. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_LIMIT_UPPER** = ``11``
  130. Constant for accessing :ref:`angular_limit/upper_angle<class_SliderJoint3D_property_angular_limit/upper_angle>`. The upper limit of rotation in the slider.
  131. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_LIMIT_LOWER:
  132. .. rst-class:: classref-enumeration-constant
  133. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_LIMIT_LOWER** = ``12``
  134. Constant for accessing :ref:`angular_limit/lower_angle<class_SliderJoint3D_property_angular_limit/lower_angle>`. The lower limit of rotation in the slider.
  135. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_LIMIT_SOFTNESS:
  136. .. rst-class:: classref-enumeration-constant
  137. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_LIMIT_SOFTNESS** = ``13``
  138. Constant for accessing :ref:`angular_limit/softness<class_SliderJoint3D_property_angular_limit/softness>`. A factor applied to the all rotation once the limit is surpassed.
  139. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_LIMIT_RESTITUTION:
  140. .. rst-class:: classref-enumeration-constant
  141. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_LIMIT_RESTITUTION** = ``14``
  142. Constant for accessing :ref:`angular_limit/restitution<class_SliderJoint3D_property_angular_limit/restitution>`. The amount of restitution of the rotation when the limit is surpassed.
  143. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_LIMIT_DAMPING:
  144. .. rst-class:: classref-enumeration-constant
  145. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_LIMIT_DAMPING** = ``15``
  146. Constant for accessing :ref:`angular_limit/damping<class_SliderJoint3D_property_angular_limit/damping>`. The amount of damping of the rotation when the limit is surpassed.
  147. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_MOTION_SOFTNESS:
  148. .. rst-class:: classref-enumeration-constant
  149. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_MOTION_SOFTNESS** = ``16``
  150. Constant for accessing :ref:`angular_motion/softness<class_SliderJoint3D_property_angular_motion/softness>`. A factor applied to the all rotation in the limits.
  151. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_MOTION_RESTITUTION:
  152. .. rst-class:: classref-enumeration-constant
  153. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_MOTION_RESTITUTION** = ``17``
  154. Constant for accessing :ref:`angular_motion/restitution<class_SliderJoint3D_property_angular_motion/restitution>`. The amount of restitution of the rotation in the limits.
  155. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_MOTION_DAMPING:
  156. .. rst-class:: classref-enumeration-constant
  157. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_MOTION_DAMPING** = ``18``
  158. Constant for accessing :ref:`angular_motion/damping<class_SliderJoint3D_property_angular_motion/damping>`. The amount of damping of the rotation in the limits.
  159. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_ORTHOGONAL_SOFTNESS:
  160. .. rst-class:: classref-enumeration-constant
  161. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_ORTHOGONAL_SOFTNESS** = ``19``
  162. Constant for accessing :ref:`angular_ortho/softness<class_SliderJoint3D_property_angular_ortho/softness>`. A factor applied to the all rotation across axes orthogonal to the slider.
  163. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_ORTHOGONAL_RESTITUTION:
  164. .. rst-class:: classref-enumeration-constant
  165. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_ORTHOGONAL_RESTITUTION** = ``20``
  166. Constant for accessing :ref:`angular_ortho/restitution<class_SliderJoint3D_property_angular_ortho/restitution>`. The amount of restitution of the rotation across axes orthogonal to the slider.
  167. .. _class_SliderJoint3D_constant_PARAM_ANGULAR_ORTHOGONAL_DAMPING:
  168. .. rst-class:: classref-enumeration-constant
  169. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_ANGULAR_ORTHOGONAL_DAMPING** = ``21``
  170. Constant for accessing :ref:`angular_ortho/damping<class_SliderJoint3D_property_angular_ortho/damping>`. The amount of damping of the rotation across axes orthogonal to the slider.
  171. .. _class_SliderJoint3D_constant_PARAM_MAX:
  172. .. rst-class:: classref-enumeration-constant
  173. :ref:`Param<enum_SliderJoint3D_Param>` **PARAM_MAX** = ``22``
  174. Represents the size of the :ref:`Param<enum_SliderJoint3D_Param>` enum.
  175. .. rst-class:: classref-section-separator
  176. ----
  177. .. rst-class:: classref-descriptions-group
  178. Property Descriptions
  179. ---------------------
  180. .. _class_SliderJoint3D_property_angular_limit/damping:
  181. .. rst-class:: classref-property
  182. :ref:`float<class_float>` **angular_limit/damping** = ``0.0`` :ref:`🔗<class_SliderJoint3D_property_angular_limit/damping>`
  183. .. rst-class:: classref-property-setget
  184. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  185. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  186. The amount of damping of the rotation when the limit is surpassed.
  187. A lower damping value allows a rotation initiated by body A to travel to body B slower.
  188. .. rst-class:: classref-item-separator
  189. ----
  190. .. _class_SliderJoint3D_property_angular_limit/lower_angle:
  191. .. rst-class:: classref-property
  192. :ref:`float<class_float>` **angular_limit/lower_angle** = ``0.0`` :ref:`🔗<class_SliderJoint3D_property_angular_limit/lower_angle>`
  193. .. rst-class:: classref-property-setget
  194. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  195. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  196. The lower limit of rotation in the slider.
  197. .. rst-class:: classref-item-separator
  198. ----
  199. .. _class_SliderJoint3D_property_angular_limit/restitution:
  200. .. rst-class:: classref-property
  201. :ref:`float<class_float>` **angular_limit/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_angular_limit/restitution>`
  202. .. rst-class:: classref-property-setget
  203. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  204. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  205. The amount of restitution of the rotation when the limit is surpassed.
  206. Does not affect damping.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_SliderJoint3D_property_angular_limit/softness:
  210. .. rst-class:: classref-property
  211. :ref:`float<class_float>` **angular_limit/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_angular_limit/softness>`
  212. .. rst-class:: classref-property-setget
  213. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  214. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  215. A factor applied to the all rotation once the limit is surpassed.
  216. Makes all rotation slower when between 0 and 1.
  217. .. rst-class:: classref-item-separator
  218. ----
  219. .. _class_SliderJoint3D_property_angular_limit/upper_angle:
  220. .. rst-class:: classref-property
  221. :ref:`float<class_float>` **angular_limit/upper_angle** = ``0.0`` :ref:`🔗<class_SliderJoint3D_property_angular_limit/upper_angle>`
  222. .. rst-class:: classref-property-setget
  223. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  224. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  225. The upper limit of rotation in the slider.
  226. .. rst-class:: classref-item-separator
  227. ----
  228. .. _class_SliderJoint3D_property_angular_motion/damping:
  229. .. rst-class:: classref-property
  230. :ref:`float<class_float>` **angular_motion/damping** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_angular_motion/damping>`
  231. .. rst-class:: classref-property-setget
  232. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  233. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  234. The amount of damping of the rotation in the limits.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_SliderJoint3D_property_angular_motion/restitution:
  238. .. rst-class:: classref-property
  239. :ref:`float<class_float>` **angular_motion/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_angular_motion/restitution>`
  240. .. rst-class:: classref-property-setget
  241. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  242. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  243. The amount of restitution of the rotation in the limits.
  244. .. rst-class:: classref-item-separator
  245. ----
  246. .. _class_SliderJoint3D_property_angular_motion/softness:
  247. .. rst-class:: classref-property
  248. :ref:`float<class_float>` **angular_motion/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_angular_motion/softness>`
  249. .. rst-class:: classref-property-setget
  250. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  251. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  252. A factor applied to the all rotation in the limits.
  253. .. rst-class:: classref-item-separator
  254. ----
  255. .. _class_SliderJoint3D_property_angular_ortho/damping:
  256. .. rst-class:: classref-property
  257. :ref:`float<class_float>` **angular_ortho/damping** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_angular_ortho/damping>`
  258. .. rst-class:: classref-property-setget
  259. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  260. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  261. The amount of damping of the rotation across axes orthogonal to the slider.
  262. .. rst-class:: classref-item-separator
  263. ----
  264. .. _class_SliderJoint3D_property_angular_ortho/restitution:
  265. .. rst-class:: classref-property
  266. :ref:`float<class_float>` **angular_ortho/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_angular_ortho/restitution>`
  267. .. rst-class:: classref-property-setget
  268. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  269. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  270. The amount of restitution of the rotation across axes orthogonal to the slider.
  271. .. rst-class:: classref-item-separator
  272. ----
  273. .. _class_SliderJoint3D_property_angular_ortho/softness:
  274. .. rst-class:: classref-property
  275. :ref:`float<class_float>` **angular_ortho/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_angular_ortho/softness>`
  276. .. rst-class:: classref-property-setget
  277. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  278. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  279. A factor applied to the all rotation across axes orthogonal to the slider.
  280. .. rst-class:: classref-item-separator
  281. ----
  282. .. _class_SliderJoint3D_property_linear_limit/damping:
  283. .. rst-class:: classref-property
  284. :ref:`float<class_float>` **linear_limit/damping** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_limit/damping>`
  285. .. rst-class:: classref-property-setget
  286. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  287. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  288. The amount of damping that happens once the limit defined by :ref:`linear_limit/lower_distance<class_SliderJoint3D_property_linear_limit/lower_distance>` and :ref:`linear_limit/upper_distance<class_SliderJoint3D_property_linear_limit/upper_distance>` is surpassed.
  289. .. rst-class:: classref-item-separator
  290. ----
  291. .. _class_SliderJoint3D_property_linear_limit/lower_distance:
  292. .. rst-class:: classref-property
  293. :ref:`float<class_float>` **linear_limit/lower_distance** = ``-1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_limit/lower_distance>`
  294. .. rst-class:: classref-property-setget
  295. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  296. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  297. The minimum difference between the pivot points on their X axis before damping happens.
  298. .. rst-class:: classref-item-separator
  299. ----
  300. .. _class_SliderJoint3D_property_linear_limit/restitution:
  301. .. rst-class:: classref-property
  302. :ref:`float<class_float>` **linear_limit/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_linear_limit/restitution>`
  303. .. rst-class:: classref-property-setget
  304. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  305. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  306. The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
  307. .. rst-class:: classref-item-separator
  308. ----
  309. .. _class_SliderJoint3D_property_linear_limit/softness:
  310. .. rst-class:: classref-property
  311. :ref:`float<class_float>` **linear_limit/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_limit/softness>`
  312. .. rst-class:: classref-property-setget
  313. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  314. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  315. A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  316. .. rst-class:: classref-item-separator
  317. ----
  318. .. _class_SliderJoint3D_property_linear_limit/upper_distance:
  319. .. rst-class:: classref-property
  320. :ref:`float<class_float>` **linear_limit/upper_distance** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_limit/upper_distance>`
  321. .. rst-class:: classref-property-setget
  322. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  323. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  324. The maximum difference between the pivot points on their X axis before damping happens.
  325. .. rst-class:: classref-item-separator
  326. ----
  327. .. _class_SliderJoint3D_property_linear_motion/damping:
  328. .. rst-class:: classref-property
  329. :ref:`float<class_float>` **linear_motion/damping** = ``0.0`` :ref:`🔗<class_SliderJoint3D_property_linear_motion/damping>`
  330. .. rst-class:: classref-property-setget
  331. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  332. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  333. The amount of damping inside the slider limits.
  334. .. rst-class:: classref-item-separator
  335. ----
  336. .. _class_SliderJoint3D_property_linear_motion/restitution:
  337. .. rst-class:: classref-property
  338. :ref:`float<class_float>` **linear_motion/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_linear_motion/restitution>`
  339. .. rst-class:: classref-property-setget
  340. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  341. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  342. The amount of restitution inside the slider limits.
  343. .. rst-class:: classref-item-separator
  344. ----
  345. .. _class_SliderJoint3D_property_linear_motion/softness:
  346. .. rst-class:: classref-property
  347. :ref:`float<class_float>` **linear_motion/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_motion/softness>`
  348. .. rst-class:: classref-property-setget
  349. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  350. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  351. A factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
  352. .. rst-class:: classref-item-separator
  353. ----
  354. .. _class_SliderJoint3D_property_linear_ortho/damping:
  355. .. rst-class:: classref-property
  356. :ref:`float<class_float>` **linear_ortho/damping** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_ortho/damping>`
  357. .. rst-class:: classref-property-setget
  358. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  359. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  360. The amount of damping when movement is across axes orthogonal to the slider.
  361. .. rst-class:: classref-item-separator
  362. ----
  363. .. _class_SliderJoint3D_property_linear_ortho/restitution:
  364. .. rst-class:: classref-property
  365. :ref:`float<class_float>` **linear_ortho/restitution** = ``0.7`` :ref:`🔗<class_SliderJoint3D_property_linear_ortho/restitution>`
  366. .. rst-class:: classref-property-setget
  367. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  368. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  369. The amount of restitution when movement is across axes orthogonal to the slider.
  370. .. rst-class:: classref-item-separator
  371. ----
  372. .. _class_SliderJoint3D_property_linear_ortho/softness:
  373. .. rst-class:: classref-property
  374. :ref:`float<class_float>` **linear_ortho/softness** = ``1.0`` :ref:`🔗<class_SliderJoint3D_property_linear_ortho/softness>`
  375. .. rst-class:: classref-property-setget
  376. - |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ )
  377. - :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const|
  378. A factor applied to the movement across axes orthogonal to the slider.
  379. .. rst-class:: classref-section-separator
  380. ----
  381. .. rst-class:: classref-descriptions-group
  382. Method Descriptions
  383. -------------------
  384. .. _class_SliderJoint3D_method_get_param:
  385. .. rst-class:: classref-method
  386. :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`\ ) |const| :ref:`🔗<class_SliderJoint3D_method_get_param>`
  387. Returns the value of the given parameter (see :ref:`Param<enum_SliderJoint3D_Param>` constants).
  388. .. rst-class:: classref-item-separator
  389. ----
  390. .. _class_SliderJoint3D_method_set_param:
  391. .. rst-class:: classref-method
  392. |void| **set_param**\ (\ param\: :ref:`Param<enum_SliderJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_SliderJoint3D_method_set_param>`
  393. Assigns ``value`` to the given parameter (see :ref:`Param<enum_SliderJoint3D_Param>` constants).
  394. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  395. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  396. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  397. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  398. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  399. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  400. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  401. .. |void| replace:: :abbr:`void (No return value.)`