API ReferenceSandbox.Physics

SliderJointclass

A slider constraint, basically allows movement only on the arbitrary axis between the 2 constrained objects on creation.

object→PhysicsJoint→SliderJoint
Namespace
Sandbox.Physics
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Physics.SliderJoint : Sandbox.Physics.PhysicsJoint

Methods2

Showing 2 methods

public void SetLinearMotor(float targetVelocity, float maxForce)PUBLIC

Sets and enables a linear velocity motor, in units per second.

ParameterTypeDescription
targetVelocityfloat—
maxForcefloat—
Returns:void—

public void SetTargetPosition(float position, float frequency, float dampingRatio)PUBLIC

Sets and enables a position spring motor.

ParameterTypeDescription
positionfloat—
frequencyfloat—
dampingRatiofloat—
Returns:void—

Properties3

Showing 3 properties

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

Slider friction.

Returns:float—

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

Maximum length it should be allowed to go

Returns:float—

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

Minimum length it should be allowed to go

Returns:float—

On this page