SliderJoint.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="SliderJoint" inherits="Joint" version="3.4">
  3. <brief_description>
  4. Slider between two PhysicsBodies in 3D.
  5. </brief_description>
  6. <description>
  7. Slides across the X axis of the pivot object. See also [Generic6DOFJoint].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_param" qualifiers="const">
  13. <return type="float">
  14. </return>
  15. <argument index="0" name="param" type="int" enum="SliderJoint.Param">
  16. </argument>
  17. <description>
  18. </description>
  19. </method>
  20. <method name="set_param">
  21. <return type="void">
  22. </return>
  23. <argument index="0" name="param" type="int" enum="SliderJoint.Param">
  24. </argument>
  25. <argument index="1" name="value" type="float">
  26. </argument>
  27. <description>
  28. </description>
  29. </method>
  30. </methods>
  31. <members>
  32. <member name="angular_limit/damping" type="float" setter="set_param" getter="get_param" default="0.0">
  33. The amount of damping of the rotation when the limit is surpassed.
  34. A lower damping value allows a rotation initiated by body A to travel to body B slower.
  35. </member>
  36. <member name="angular_limit/lower_angle" type="float" setter="_set_lower_limit_angular" getter="_get_lower_limit_angular" default="0.0">
  37. The lower limit of rotation in the slider.
  38. </member>
  39. <member name="angular_limit/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  40. The amount of restitution of the rotation when the limit is surpassed.
  41. Does not affect damping.
  42. </member>
  43. <member name="angular_limit/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  44. A factor applied to the all rotation once the limit is surpassed.
  45. Makes all rotation slower when between 0 and 1.
  46. </member>
  47. <member name="angular_limit/upper_angle" type="float" setter="_set_upper_limit_angular" getter="_get_upper_limit_angular" default="0.0">
  48. The upper limit of rotation in the slider.
  49. </member>
  50. <member name="angular_motion/damping" type="float" setter="set_param" getter="get_param" default="1.0">
  51. The amount of damping of the rotation in the limits.
  52. </member>
  53. <member name="angular_motion/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  54. The amount of restitution of the rotation in the limits.
  55. </member>
  56. <member name="angular_motion/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  57. A factor applied to the all rotation in the limits.
  58. </member>
  59. <member name="angular_ortho/damping" type="float" setter="set_param" getter="get_param" default="1.0">
  60. The amount of damping of the rotation across axes orthogonal to the slider.
  61. </member>
  62. <member name="angular_ortho/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  63. The amount of restitution of the rotation across axes orthogonal to the slider.
  64. </member>
  65. <member name="angular_ortho/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  66. A factor applied to the all rotation across axes orthogonal to the slider.
  67. </member>
  68. <member name="linear_limit/damping" type="float" setter="set_param" getter="get_param" default="1.0">
  69. The amount of damping that happens once the limit defined by [member linear_limit/lower_distance] and [member linear_limit/upper_distance] is surpassed.
  70. </member>
  71. <member name="linear_limit/lower_distance" type="float" setter="set_param" getter="get_param" default="-1.0">
  72. The minimum difference between the pivot points on their X axis before damping happens.
  73. </member>
  74. <member name="linear_limit/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  75. The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
  76. </member>
  77. <member name="linear_limit/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  78. A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  79. </member>
  80. <member name="linear_limit/upper_distance" type="float" setter="set_param" getter="get_param" default="1.0">
  81. The maximum difference between the pivot points on their X axis before damping happens.
  82. </member>
  83. <member name="linear_motion/damping" type="float" setter="set_param" getter="get_param" default="0.0">
  84. The amount of damping inside the slider limits.
  85. </member>
  86. <member name="linear_motion/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  87. The amount of restitution inside the slider limits.
  88. </member>
  89. <member name="linear_motion/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  90. 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.
  91. </member>
  92. <member name="linear_ortho/damping" type="float" setter="set_param" getter="get_param" default="1.0">
  93. The amount of damping when movement is across axes orthogonal to the slider.
  94. </member>
  95. <member name="linear_ortho/restitution" type="float" setter="set_param" getter="get_param" default="0.7">
  96. The amount of restitution when movement is across axes orthogonal to the slider.
  97. </member>
  98. <member name="linear_ortho/softness" type="float" setter="set_param" getter="get_param" default="1.0">
  99. A factor applied to the movement across axes orthogonal to the slider.
  100. </member>
  101. </members>
  102. <constants>
  103. <constant name="PARAM_LINEAR_LIMIT_UPPER" value="0" enum="Param">
  104. The maximum difference between the pivot points on their X axis before damping happens.
  105. </constant>
  106. <constant name="PARAM_LINEAR_LIMIT_LOWER" value="1" enum="Param">
  107. The minimum difference between the pivot points on their X axis before damping happens.
  108. </constant>
  109. <constant name="PARAM_LINEAR_LIMIT_SOFTNESS" value="2" enum="Param">
  110. A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
  111. </constant>
  112. <constant name="PARAM_LINEAR_LIMIT_RESTITUTION" value="3" enum="Param">
  113. The amount of restitution once the limits are surpassed. The lower, the more velocityenergy gets lost.
  114. </constant>
  115. <constant name="PARAM_LINEAR_LIMIT_DAMPING" value="4" enum="Param">
  116. The amount of damping once the slider limits are surpassed.
  117. </constant>
  118. <constant name="PARAM_LINEAR_MOTION_SOFTNESS" value="5" enum="Param">
  119. 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.
  120. </constant>
  121. <constant name="PARAM_LINEAR_MOTION_RESTITUTION" value="6" enum="Param">
  122. The amount of restitution inside the slider limits.
  123. </constant>
  124. <constant name="PARAM_LINEAR_MOTION_DAMPING" value="7" enum="Param">
  125. The amount of damping inside the slider limits.
  126. </constant>
  127. <constant name="PARAM_LINEAR_ORTHOGONAL_SOFTNESS" value="8" enum="Param">
  128. A factor applied to the movement across axes orthogonal to the slider.
  129. </constant>
  130. <constant name="PARAM_LINEAR_ORTHOGONAL_RESTITUTION" value="9" enum="Param">
  131. The amount of restitution when movement is across axes orthogonal to the slider.
  132. </constant>
  133. <constant name="PARAM_LINEAR_ORTHOGONAL_DAMPING" value="10" enum="Param">
  134. The amount of damping when movement is across axes orthogonal to the slider.
  135. </constant>
  136. <constant name="PARAM_ANGULAR_LIMIT_UPPER" value="11" enum="Param">
  137. The upper limit of rotation in the slider.
  138. </constant>
  139. <constant name="PARAM_ANGULAR_LIMIT_LOWER" value="12" enum="Param">
  140. The lower limit of rotation in the slider.
  141. </constant>
  142. <constant name="PARAM_ANGULAR_LIMIT_SOFTNESS" value="13" enum="Param">
  143. A factor applied to the all rotation once the limit is surpassed.
  144. </constant>
  145. <constant name="PARAM_ANGULAR_LIMIT_RESTITUTION" value="14" enum="Param">
  146. The amount of restitution of the rotation when the limit is surpassed.
  147. </constant>
  148. <constant name="PARAM_ANGULAR_LIMIT_DAMPING" value="15" enum="Param">
  149. The amount of damping of the rotation when the limit is surpassed.
  150. </constant>
  151. <constant name="PARAM_ANGULAR_MOTION_SOFTNESS" value="16" enum="Param">
  152. A factor applied to the all rotation in the limits.
  153. </constant>
  154. <constant name="PARAM_ANGULAR_MOTION_RESTITUTION" value="17" enum="Param">
  155. The amount of restitution of the rotation in the limits.
  156. </constant>
  157. <constant name="PARAM_ANGULAR_MOTION_DAMPING" value="18" enum="Param">
  158. The amount of damping of the rotation in the limits.
  159. </constant>
  160. <constant name="PARAM_ANGULAR_ORTHOGONAL_SOFTNESS" value="19" enum="Param">
  161. A factor applied to the all rotation across axes orthogonal to the slider.
  162. </constant>
  163. <constant name="PARAM_ANGULAR_ORTHOGONAL_RESTITUTION" value="20" enum="Param">
  164. The amount of restitution of the rotation across axes orthogonal to the slider.
  165. </constant>
  166. <constant name="PARAM_ANGULAR_ORTHOGONAL_DAMPING" value="21" enum="Param">
  167. The amount of damping of the rotation across axes orthogonal to the slider.
  168. </constant>
  169. <constant name="PARAM_MAX" value="22" enum="Param">
  170. Represents the size of the [enum Param] enum.
  171. </constant>
  172. </constants>
  173. </class>