Struct SliderJoint

Piston kind of slider between two bodies in 3D.

struct SliderJoint ;

Slides across the X axis of the pivot object.

Properties

NameTypeDescription
angularLimitDamping[get, set] doubleThe 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.
angularLimitLowerAngle[get, set] doubleThe lower limit of rotation in the slider.
angularLimitRestitution[get, set] doubleThe amount of restitution of the rotation when the limit is surpassed. Does not affect damping.
angularLimitSoftness[get, set] doubleA factor applied to the all rotation once the limit is surpassed. Makes all rotation slower when between 0 and 1.
angularLimitUpperAngle[get, set] doubleThe upper limit of rotation in the slider.
angularMotionDamping[get, set] doubleThe amount of damping of the rotation in the limits.
angularMotionRestitution[get, set] doubleThe amount of restitution of the rotation in the limits.
angularMotionSoftness[get, set] doubleA factor applied to the all rotation in the limits.
angularOrthoDamping[get, set] doubleThe amount of damping of the rotation across axes orthogonal to the slider.
angularOrthoRestitution[get, set] doubleThe amount of restitution of the rotation across axes orthogonal to the slider.
angularOrthoSoftness[get, set] doubleA factor applied to the all rotation across axes orthogonal to the slider.
linearLimitDamping[get, set] doubleThe amount of damping that happens once the limit defined by linearLimit/lowerDistance and linearLimit/upperDistance is surpassed.
linearLimitLowerDistance[get, set] doubleThe minimum difference between the pivot points on their X axis before damping happens.
linearLimitRestitution[get, set] doubleThe amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
linearLimitSoftness[get, set] doubleA factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
linearLimitUpperDistance[get, set] doubleThe maximum difference between the pivot points on their X axis before damping happens.
linearMotionDamping[get, set] doubleThe amount of damping inside the slider limits.
linearMotionRestitution[get, set] doubleThe amount of restitution inside the slider limits.
linearMotionSoftness[get, set] doubleA factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
linearOrthoDamping[get, set] doubleThe amount of damping when movement is across axes orthogonal to the slider.
linearOrthoRestitution[get, set] doubleThe amount of restitution when movement is across axes orthogonal to the slider.
linearOrthoSoftness[get, set] doubleA factor applied to the movement across axes orthogonal to the slider.

Methods

NameDescription
_getLowerLimitAngular
_getUpperLimitAngular
_setLowerLimitAngular
_setUpperLimitAngular
getParam
setParam

Enums

NameDescription
Constants
Param