class_sliderjoint.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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 SliderJoint.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_SliderJoint:
  6. SliderJoint
  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. Piston kind of slider between two bodies in 3D.
  13. Properties
  14. ----------
  15. +---------------------------+--------------------------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`angular_limit/damping<class_SliderJoint_property_angular_limit/damping>` |
  17. +---------------------------+--------------------------------------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`angular_limit/lower_angle<class_SliderJoint_property_angular_limit/lower_angle>` |
  19. +---------------------------+--------------------------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`angular_limit/restitution<class_SliderJoint_property_angular_limit/restitution>` |
  21. +---------------------------+--------------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`angular_limit/softness<class_SliderJoint_property_angular_limit/softness>` |
  23. +---------------------------+--------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`angular_limit/upper_angle<class_SliderJoint_property_angular_limit/upper_angle>` |
  25. +---------------------------+--------------------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`angular_motion/damping<class_SliderJoint_property_angular_motion/damping>` |
  27. +---------------------------+--------------------------------------------------------------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`angular_motion/restitution<class_SliderJoint_property_angular_motion/restitution>` |
  29. +---------------------------+--------------------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`angular_motion/softness<class_SliderJoint_property_angular_motion/softness>` |
  31. +---------------------------+--------------------------------------------------------------------------------------------+
  32. | :ref:`float<class_float>` | :ref:`angular_ortho/damping<class_SliderJoint_property_angular_ortho/damping>` |
  33. +---------------------------+--------------------------------------------------------------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`angular_ortho/restitution<class_SliderJoint_property_angular_ortho/restitution>` |
  35. +---------------------------+--------------------------------------------------------------------------------------------+
  36. | :ref:`float<class_float>` | :ref:`angular_ortho/softness<class_SliderJoint_property_angular_ortho/softness>` |
  37. +---------------------------+--------------------------------------------------------------------------------------------+
  38. | :ref:`float<class_float>` | :ref:`linear_limit/damping<class_SliderJoint_property_linear_limit/damping>` |
  39. +---------------------------+--------------------------------------------------------------------------------------------+
  40. | :ref:`float<class_float>` | :ref:`linear_limit/lower_distance<class_SliderJoint_property_linear_limit/lower_distance>` |
  41. +---------------------------+--------------------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`linear_limit/restitution<class_SliderJoint_property_linear_limit/restitution>` |
  43. +---------------------------+--------------------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`linear_limit/softness<class_SliderJoint_property_linear_limit/softness>` |
  45. +---------------------------+--------------------------------------------------------------------------------------------+
  46. | :ref:`float<class_float>` | :ref:`linear_limit/upper_distance<class_SliderJoint_property_linear_limit/upper_distance>` |
  47. +---------------------------+--------------------------------------------------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`linear_motion/damping<class_SliderJoint_property_linear_motion/damping>` |
  49. +---------------------------+--------------------------------------------------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`linear_motion/restitution<class_SliderJoint_property_linear_motion/restitution>` |
  51. +---------------------------+--------------------------------------------------------------------------------------------+
  52. | :ref:`float<class_float>` | :ref:`linear_motion/softness<class_SliderJoint_property_linear_motion/softness>` |
  53. +---------------------------+--------------------------------------------------------------------------------------------+
  54. | :ref:`float<class_float>` | :ref:`linear_ortho/damping<class_SliderJoint_property_linear_ortho/damping>` |
  55. +---------------------------+--------------------------------------------------------------------------------------------+
  56. | :ref:`float<class_float>` | :ref:`linear_ortho/restitution<class_SliderJoint_property_linear_ortho/restitution>` |
  57. +---------------------------+--------------------------------------------------------------------------------------------+
  58. | :ref:`float<class_float>` | :ref:`linear_ortho/softness<class_SliderJoint_property_linear_ortho/softness>` |
  59. +---------------------------+--------------------------------------------------------------------------------------------+
  60. Enumerations
  61. ------------
  62. .. _enum_SliderJoint_Param:
  63. .. _class_SliderJoint_constant_PARAM_LINEAR_LIMIT_UPPER:
  64. .. _class_SliderJoint_constant_PARAM_LINEAR_LIMIT_LOWER:
  65. .. _class_SliderJoint_constant_PARAM_LINEAR_LIMIT_SOFTNESS:
  66. .. _class_SliderJoint_constant_PARAM_LINEAR_LIMIT_RESTITUTION:
  67. .. _class_SliderJoint_constant_PARAM_LINEAR_LIMIT_DAMPING:
  68. .. _class_SliderJoint_constant_PARAM_LINEAR_MOTION_SOFTNESS:
  69. .. _class_SliderJoint_constant_PARAM_LINEAR_MOTION_RESTITUTION:
  70. .. _class_SliderJoint_constant_PARAM_LINEAR_MOTION_DAMPING:
  71. .. _class_SliderJoint_constant_PARAM_LINEAR_ORTHOGONAL_SOFTNESS:
  72. .. _class_SliderJoint_constant_PARAM_LINEAR_ORTHOGONAL_RESTITUTION:
  73. .. _class_SliderJoint_constant_PARAM_LINEAR_ORTHOGONAL_DAMPING:
  74. .. _class_SliderJoint_constant_PARAM_ANGULAR_LIMIT_UPPER:
  75. .. _class_SliderJoint_constant_PARAM_ANGULAR_LIMIT_LOWER:
  76. .. _class_SliderJoint_constant_PARAM_ANGULAR_LIMIT_SOFTNESS:
  77. .. _class_SliderJoint_constant_PARAM_ANGULAR_LIMIT_RESTITUTION:
  78. .. _class_SliderJoint_constant_PARAM_ANGULAR_LIMIT_DAMPING:
  79. .. _class_SliderJoint_constant_PARAM_ANGULAR_MOTION_SOFTNESS:
  80. .. _class_SliderJoint_constant_PARAM_ANGULAR_MOTION_RESTITUTION:
  81. .. _class_SliderJoint_constant_PARAM_ANGULAR_MOTION_DAMPING:
  82. .. _class_SliderJoint_constant_PARAM_ANGULAR_ORTHOGONAL_SOFTNESS:
  83. .. _class_SliderJoint_constant_PARAM_ANGULAR_ORTHOGONAL_RESTITUTION:
  84. .. _class_SliderJoint_constant_PARAM_ANGULAR_ORTHOGONAL_DAMPING:
  85. .. _class_SliderJoint_constant_PARAM_MAX:
  86. enum **Param**:
  87. - **PARAM_LINEAR_LIMIT_UPPER** = **0** --- The maximum difference between the pivot points on their x-axis before damping happens.
  88. - **PARAM_LINEAR_LIMIT_LOWER** = **1** --- The minimum difference between the pivot points on their x-axis before damping happens.
  89. - **PARAM_LINEAR_LIMIT_SOFTNESS** = **2** --- A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  90. - **PARAM_LINEAR_LIMIT_RESTITUTION** = **3** --- The amount of restitution once the limits are surpassed. The lower, the more velocityenergy gets lost.
  91. - **PARAM_LINEAR_LIMIT_DAMPING** = **4** --- The amount of damping once the slider limits are surpassed.
  92. - **PARAM_LINEAR_MOTION_SOFTNESS** = **5** --- 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.
  93. - **PARAM_LINEAR_MOTION_RESTITUTION** = **6** --- The amount of restitution inside the slider limits.
  94. - **PARAM_LINEAR_MOTION_DAMPING** = **7** --- The amount of damping inside the slider limits.
  95. - **PARAM_LINEAR_ORTHOGONAL_SOFTNESS** = **8** --- A factor applied to the movement across axes orthogonal to the slider.
  96. - **PARAM_LINEAR_ORTHOGONAL_RESTITUTION** = **9** --- The amount of restitution when movement is across axes orthogonal to the slider.
  97. - **PARAM_LINEAR_ORTHOGONAL_DAMPING** = **10** --- The amount of damping when movement is across axes orthogonal to the slider.
  98. - **PARAM_ANGULAR_LIMIT_UPPER** = **11** --- The upper limit of rotation in the slider.
  99. - **PARAM_ANGULAR_LIMIT_LOWER** = **12** --- The lower limit of rotation in the slider.
  100. - **PARAM_ANGULAR_LIMIT_SOFTNESS** = **13** --- A factor applied to the all rotation once the limit is surpassed.
  101. - **PARAM_ANGULAR_LIMIT_RESTITUTION** = **14** --- The amount of restitution of the rotation when the limit is surpassed.
  102. - **PARAM_ANGULAR_LIMIT_DAMPING** = **15** --- The amount of damping of the rotation when the limit is surpassed.
  103. - **PARAM_ANGULAR_MOTION_SOFTNESS** = **16** --- A factor applied to the all rotation in the limits.
  104. - **PARAM_ANGULAR_MOTION_RESTITUTION** = **17** --- The amount of restitution of the rotation in the limits.
  105. - **PARAM_ANGULAR_MOTION_DAMPING** = **18** --- The amount of damping of the rotation in the limits.
  106. - **PARAM_ANGULAR_ORTHOGONAL_SOFTNESS** = **19** --- A factor applied to the all rotation across axes orthogonal to the slider.
  107. - **PARAM_ANGULAR_ORTHOGONAL_RESTITUTION** = **20** --- The amount of restitution of the rotation across axes orthogonal to the slider.
  108. - **PARAM_ANGULAR_ORTHOGONAL_DAMPING** = **21** --- The amount of damping of the rotation across axes orthogonal to the slider.
  109. - **PARAM_MAX** = **22** --- Represents the size of the :ref:`Param<enum_SliderJoint_Param>` enum.
  110. Description
  111. -----------
  112. Slides across the x-axis of the pivot object.
  113. Property Descriptions
  114. ---------------------
  115. .. _class_SliderJoint_property_angular_limit/damping:
  116. - :ref:`float<class_float>` **angular_limit/damping**
  117. +----------+------------------+
  118. | *Setter* | set_param(value) |
  119. +----------+------------------+
  120. | *Getter* | get_param() |
  121. +----------+------------------+
  122. The amount of damping of the rotation when the limit is surpassed.
  123. A lower damping value allows a rotation initiated by body A to travel to body B slower.
  124. ----
  125. .. _class_SliderJoint_property_angular_limit/lower_angle:
  126. - :ref:`float<class_float>` **angular_limit/lower_angle**
  127. The lower limit of rotation in the slider.
  128. ----
  129. .. _class_SliderJoint_property_angular_limit/restitution:
  130. - :ref:`float<class_float>` **angular_limit/restitution**
  131. +----------+------------------+
  132. | *Setter* | set_param(value) |
  133. +----------+------------------+
  134. | *Getter* | get_param() |
  135. +----------+------------------+
  136. The amount of restitution of the rotation when the limit is surpassed.
  137. Does not affect damping.
  138. ----
  139. .. _class_SliderJoint_property_angular_limit/softness:
  140. - :ref:`float<class_float>` **angular_limit/softness**
  141. +----------+------------------+
  142. | *Setter* | set_param(value) |
  143. +----------+------------------+
  144. | *Getter* | get_param() |
  145. +----------+------------------+
  146. A factor applied to the all rotation once the limit is surpassed.
  147. Makes all rotation slower when between 0 and 1.
  148. ----
  149. .. _class_SliderJoint_property_angular_limit/upper_angle:
  150. - :ref:`float<class_float>` **angular_limit/upper_angle**
  151. The upper limit of rotation in the slider.
  152. ----
  153. .. _class_SliderJoint_property_angular_motion/damping:
  154. - :ref:`float<class_float>` **angular_motion/damping**
  155. +----------+------------------+
  156. | *Setter* | set_param(value) |
  157. +----------+------------------+
  158. | *Getter* | get_param() |
  159. +----------+------------------+
  160. The amount of damping of the rotation in the limits.
  161. ----
  162. .. _class_SliderJoint_property_angular_motion/restitution:
  163. - :ref:`float<class_float>` **angular_motion/restitution**
  164. +----------+------------------+
  165. | *Setter* | set_param(value) |
  166. +----------+------------------+
  167. | *Getter* | get_param() |
  168. +----------+------------------+
  169. The amount of restitution of the rotation in the limits.
  170. ----
  171. .. _class_SliderJoint_property_angular_motion/softness:
  172. - :ref:`float<class_float>` **angular_motion/softness**
  173. +----------+------------------+
  174. | *Setter* | set_param(value) |
  175. +----------+------------------+
  176. | *Getter* | get_param() |
  177. +----------+------------------+
  178. A factor applied to the all rotation in the limits.
  179. ----
  180. .. _class_SliderJoint_property_angular_ortho/damping:
  181. - :ref:`float<class_float>` **angular_ortho/damping**
  182. +----------+------------------+
  183. | *Setter* | set_param(value) |
  184. +----------+------------------+
  185. | *Getter* | get_param() |
  186. +----------+------------------+
  187. The amount of damping of the rotation across axes orthogonal to the slider.
  188. ----
  189. .. _class_SliderJoint_property_angular_ortho/restitution:
  190. - :ref:`float<class_float>` **angular_ortho/restitution**
  191. +----------+------------------+
  192. | *Setter* | set_param(value) |
  193. +----------+------------------+
  194. | *Getter* | get_param() |
  195. +----------+------------------+
  196. The amount of restitution of the rotation across axes orthogonal to the slider.
  197. ----
  198. .. _class_SliderJoint_property_angular_ortho/softness:
  199. - :ref:`float<class_float>` **angular_ortho/softness**
  200. +----------+------------------+
  201. | *Setter* | set_param(value) |
  202. +----------+------------------+
  203. | *Getter* | get_param() |
  204. +----------+------------------+
  205. A factor applied to the all rotation across axes orthogonal to the slider.
  206. ----
  207. .. _class_SliderJoint_property_linear_limit/damping:
  208. - :ref:`float<class_float>` **linear_limit/damping**
  209. +----------+------------------+
  210. | *Setter* | set_param(value) |
  211. +----------+------------------+
  212. | *Getter* | get_param() |
  213. +----------+------------------+
  214. The amount of damping that happens once the limit defined by :ref:`linear_limit/lower_distance<class_SliderJoint_property_linear_limit/lower_distance>` and :ref:`linear_limit/upper_distance<class_SliderJoint_property_linear_limit/upper_distance>` is surpassed.
  215. ----
  216. .. _class_SliderJoint_property_linear_limit/lower_distance:
  217. - :ref:`float<class_float>` **linear_limit/lower_distance**
  218. +----------+------------------+
  219. | *Setter* | set_param(value) |
  220. +----------+------------------+
  221. | *Getter* | get_param() |
  222. +----------+------------------+
  223. The minimum difference between the pivot points on their x-axis before damping happens.
  224. ----
  225. .. _class_SliderJoint_property_linear_limit/restitution:
  226. - :ref:`float<class_float>` **linear_limit/restitution**
  227. +----------+------------------+
  228. | *Setter* | set_param(value) |
  229. +----------+------------------+
  230. | *Getter* | get_param() |
  231. +----------+------------------+
  232. The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
  233. ----
  234. .. _class_SliderJoint_property_linear_limit/softness:
  235. - :ref:`float<class_float>` **linear_limit/softness**
  236. +----------+------------------+
  237. | *Setter* | set_param(value) |
  238. +----------+------------------+
  239. | *Getter* | get_param() |
  240. +----------+------------------+
  241. A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  242. ----
  243. .. _class_SliderJoint_property_linear_limit/upper_distance:
  244. - :ref:`float<class_float>` **linear_limit/upper_distance**
  245. +----------+------------------+
  246. | *Setter* | set_param(value) |
  247. +----------+------------------+
  248. | *Getter* | get_param() |
  249. +----------+------------------+
  250. The maximum difference between the pivot points on their x-axis before damping happens.
  251. ----
  252. .. _class_SliderJoint_property_linear_motion/damping:
  253. - :ref:`float<class_float>` **linear_motion/damping**
  254. +----------+------------------+
  255. | *Setter* | set_param(value) |
  256. +----------+------------------+
  257. | *Getter* | get_param() |
  258. +----------+------------------+
  259. The amount of damping inside the slider limits.
  260. ----
  261. .. _class_SliderJoint_property_linear_motion/restitution:
  262. - :ref:`float<class_float>` **linear_motion/restitution**
  263. +----------+------------------+
  264. | *Setter* | set_param(value) |
  265. +----------+------------------+
  266. | *Getter* | get_param() |
  267. +----------+------------------+
  268. The amount of restitution inside the slider limits.
  269. ----
  270. .. _class_SliderJoint_property_linear_motion/softness:
  271. - :ref:`float<class_float>` **linear_motion/softness**
  272. +----------+------------------+
  273. | *Setter* | set_param(value) |
  274. +----------+------------------+
  275. | *Getter* | get_param() |
  276. +----------+------------------+
  277. 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.
  278. ----
  279. .. _class_SliderJoint_property_linear_ortho/damping:
  280. - :ref:`float<class_float>` **linear_ortho/damping**
  281. +----------+------------------+
  282. | *Setter* | set_param(value) |
  283. +----------+------------------+
  284. | *Getter* | get_param() |
  285. +----------+------------------+
  286. The amount of damping when movement is across axes orthogonal to the slider.
  287. ----
  288. .. _class_SliderJoint_property_linear_ortho/restitution:
  289. - :ref:`float<class_float>` **linear_ortho/restitution**
  290. +----------+------------------+
  291. | *Setter* | set_param(value) |
  292. +----------+------------------+
  293. | *Getter* | get_param() |
  294. +----------+------------------+
  295. The amount of restitution when movement is across axes orthogonal to the slider.
  296. ----
  297. .. _class_SliderJoint_property_linear_ortho/softness:
  298. - :ref:`float<class_float>` **linear_ortho/softness**
  299. +----------+------------------+
  300. | *Setter* | set_param(value) |
  301. +----------+------------------+
  302. | *Getter* | get_param() |
  303. +----------+------------------+
  304. A factor applied to the movement across axes orthogonal to the slider.