SliderJoint3D¶
Inherits: Joint3D < Node3D < Node < Object
A physics joint that restricts the movement of a 3D physics body along an axis relative to another physics body.
Description¶
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.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
Enumerations¶
enum Param:
Param PARAM_LINEAR_LIMIT_UPPER = 0
The maximum difference between the pivot points on their X axis before damping happens.
Param PARAM_LINEAR_LIMIT_LOWER = 1
The minimum difference between the pivot points on their X axis before damping happens.
Param PARAM_LINEAR_LIMIT_SOFTNESS = 2
A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
Param PARAM_LINEAR_LIMIT_RESTITUTION = 3
The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
Param PARAM_LINEAR_LIMIT_DAMPING = 4
The amount of damping once the slider limits are surpassed.
Param PARAM_LINEAR_MOTION_SOFTNESS = 5
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.
Param PARAM_LINEAR_MOTION_RESTITUTION = 6
The amount of restitution inside the slider limits.
Param PARAM_LINEAR_MOTION_DAMPING = 7
The amount of damping inside the slider limits.
Param PARAM_LINEAR_ORTHOGONAL_SOFTNESS = 8
A factor applied to the movement across axes orthogonal to the slider.
Param PARAM_LINEAR_ORTHOGONAL_RESTITUTION = 9
The amount of restitution when movement is across axes orthogonal to the slider.