class_sliderjoint.rst 18 KB

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