SliderJointclass

Restrict an object to one axis, relative to another object. Like a drawer opening.

object→Joint→SliderJoint
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.SliderJoint : Sandbox.Joint

Constructors1

Showing 1 constructors

public SliderJoint()PUBLICCONSTRUCTOR

Properties10

Showing 10 properties

public float Sandbox.SliderJoint.DampingRatio { get; set; }PUBLICGETSET

Position spring damping ratio.

Returns:float—

public float Sandbox.SliderJoint.Frequency { get; set; }PUBLICGETSET

Position spring frequency in hertz.

Returns:float—

public float Sandbox.SliderJoint.Friction { get; set; }PUBLICGETSET

Slider friction

Returns:float—

public System.Nullable`1<bool> Sandbox.SliderJoint.LimitEnabled { get; set; }PUBLICGETSET

Explicit limit state. Null retains automatic limits from the length range.

Returns:Nullable<bool>—

public float Sandbox.SliderJoint.MaxForce { get; set; }PUBLICGETSET

Maximum force the velocity motor may apply.

Returns:float—

public float Sandbox.SliderJoint.MaxLength { get; set; }PUBLICGETSET

Maximum length it should be allowed to go

Returns:float—

public float Sandbox.SliderJoint.MinLength { get; set; }PUBLICGETSET

Minimum length it should be allowed to go

Returns:float—

public Sandbox.SliderJoint.MotorMode Sandbox.SliderJoint.Motor { get; set; }PUBLICGETSET

Chooses friction, a position spring, or a velocity motor.

Returns:MotorMode—

public float Sandbox.SliderJoint.TargetPosition { get; set; }PUBLICGETSET

Target offset along the slider axis.

Returns:float—

public float Sandbox.SliderJoint.TargetVelocity { get; set; }PUBLICGETSET

Target speed along the slider axis, in units per second.

Returns:float—

On this page