API ReferenceSandbox.Physics
SliderJointclass
A slider constraint, basically allows movement only on the arbitrary axis between the 2 constrained objects on creation.
Methods2
Showing 2 methods
public void SetLinearMotor(float targetVelocity, float maxForce)
Sets and enables a linear velocity motor, in units per second.
| Parameter | Type | Description |
|---|---|---|
| targetVelocity | float | — |
| maxForce | float | — |
Returns:
void—public void SetTargetPosition(float position, float frequency, float dampingRatio)
Sets and enables a position spring motor.
| Parameter | Type | Description |
|---|---|---|
| position | float | — |
| frequency | float | — |
| dampingRatio | float | — |
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public float Sandbox.Physics.SliderJoint.Friction { get; set; }
Slider friction.
Returns:
float—public float Sandbox.Physics.SliderJoint.MaxLength { get; set; }
Maximum length it should be allowed to go
Returns:
float—public float Sandbox.Physics.SliderJoint.MinLength { get; set; }
Minimum length it should be allowed to go
Returns:
float—No results match this filter.