SliderJoint.xml 8.2 KB

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