Table of Contents

Class SliderJoint3D

A physics joint that restricts the movement of a 3D physics body along an axis relative to another physics body.

Inheritance
SliderJoint3D

Remarks

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

angular_limit/damping

The amount of damping of the rotation when the limit is surpassed.

A lower damping value allows a rotation initiated by body A to travel to body B slower.

var angular_limit/damping : float = 0.0

Property Value

float

Remarks

angular_limit/lower_angle

The lower limit of rotation in the slider.

var angular_limit/lower_angle : float = 0.0

Property Value

float

Remarks

angular_limit/restitution

The amount of restitution of the rotation when the limit is surpassed.

Does not affect damping.

var angular_limit/restitution : float = 0.7

Property Value

float

Remarks

angular_limit/softness

A factor applied to the all rotation once the limit is surpassed.

Makes all rotation slower when between 0 and 1.

var angular_limit/softness : float = 1.0

Property Value

float

Remarks

angular_limit/upper_angle

The upper limit of rotation in the slider.

var angular_limit/upper_angle : float = 0.0

Property Value

float

Remarks

angular_motion/damping

The amount of damping of the rotation in the limits.

var angular_motion/damping : float = 1.0

Property Value

float

Remarks

angular_motion/restitution

The amount of restitution of the rotation in the limits.

var angular_motion/restitution : float = 0.7

Property Value

float

Remarks

angular_motion/softness

A factor applied to the all rotation in the limits.

var angular_motion/softness : float = 1.0

Property Value

float

Remarks

angular_ortho/damping

The amount of damping of the rotation across axes orthogonal to the slider.

var angular_ortho/damping : float = 1.0

Property Value

float

Remarks

angular_ortho/restitution

The amount of restitution of the rotation across axes orthogonal to the slider.

var angular_ortho/restitution : float = 0.7

Property Value

float

Remarks

angular_ortho/softness

A factor applied to the all rotation across axes orthogonal to the slider.

var angular_ortho/softness : float = 1.0

Property Value

float

Remarks

linear_limit/damping

The amount of damping that happens once the limit defined by linear_limit/lower_distance and linear_limit/upper_distance is surpassed.

var linear_limit/damping : float = 1.0

Property Value

float

Remarks

linear_limit/lower_distance

The minimum difference between the pivot points on their X axis before damping happens.

var linear_limit/lower_distance : float = -1.0

Property Value

float

Remarks

linear_limit/restitution

The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.

var linear_limit/restitution : float = 0.7

Property Value

float

Remarks

linear_limit/softness

A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.

var linear_limit/softness : float = 1.0

Property Value

float

Remarks

linear_limit/upper_distance

The maximum difference between the pivot points on their X axis before damping happens.

var linear_limit/upper_distance : float = 1.0

Property Value

float

Remarks

linear_motion/damping

The amount of damping inside the slider limits.

var linear_motion/damping : float = 0.0

Property Value

float

Remarks

linear_motion/restitution

The amount of restitution inside the slider limits.

var linear_motion/restitution : float = 0.7

Property Value

float

Remarks

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.

var linear_motion/softness : float = 1.0

Property Value

float

Remarks

linear_ortho/damping

The amount of damping when movement is across axes orthogonal to the slider.

var linear_ortho/damping : float = 1.0

Property Value

float

Remarks

linear_ortho/restitution

The amount of restitution when movement is across axes orthogonal to the slider.

var linear_ortho/restitution : float = 0.7

Property Value

float

Remarks

linear_ortho/softness

A factor applied to the movement across axes orthogonal to the slider.

var linear_ortho/softness : float = 1.0

Property Value

float

Remarks

Methods

get_param(int)

Qualifiers: const

Returns the value of the given parameter (see Param constants).

float get_param(int param)

Parameters

param int

set_param(int, float)

Assigns value to the given parameter (see Param constants).

void set_param(int param, float value)

Parameters

param int
value float