SliderJoint.xml 8.2 KB

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