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