SliderJoint.xml 9.0 KB

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