SliderJointBuilderclass
Builds a slider joint that moves along one axis.
Methods7
Showing 7 methods
public Sandbox.SliderJointBuilder WithDampingRatio(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.SliderJointBuilder WithFrequency(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.SliderJointBuilder WithFriction(float v)
Sets friction and disables the motor.
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.SliderJointBuilder WithLimit(float min, float max)
Sets and enables the translation limits.
| Parameter | Type | Description |
|---|---|---|
| min | float | The minimum translation along the joint axis. |
| max | float | The maximum translation along the joint axis. |
public Sandbox.SliderJointBuilder WithMaxForce(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.SliderJointBuilder WithTargetPosition(float position)
Sets and enables the target-position spring motor.
| Parameter | Type | Description |
|---|---|---|
| position | float | — |
public Sandbox.SliderJointBuilder WithTargetVelocity(Vector3 v)
Sets and enables the velocity motor.
| Parameter | Type | Description |
|---|---|---|
| v | Vector3 | — |
No results match this filter.
Properties10
Showing 10 properties
public float Sandbox.SliderJointBuilder.DampingRatio { get; set; }
Spring motor damping ratio.
float—public bool Sandbox.SliderJointBuilder.EnableLimit { get; set; }
Whether the joint enforces a translation limit along its axis.
bool—public bool Sandbox.SliderJointBuilder.EnableMotor { get; set; }
Whether a velocity or position motor is enabled.
bool—public float Sandbox.SliderJointBuilder.Frequency { get; set; }
Spring motor frequency in hertz.
float—public float Sandbox.SliderJointBuilder.Friction { get; set; }
Component-style friction, used when the motor is disabled.
float—public Vector2 Sandbox.SliderJointBuilder.Limit { get; set; }
The minimum and maximum allowed translation along the joint axis.
public float Sandbox.SliderJointBuilder.MaxForce { get; set; }
Maximum force the velocity motor may apply.
float—public Sandbox.SliderJoint.MotorMode Sandbox.SliderJointBuilder.Motor { get; set; }
The motor mode, matching the slider component.
public float Sandbox.SliderJointBuilder.TargetPosition { get; set; }
Spring motor target offset along the slider axis.
float—public Vector3 Sandbox.SliderJointBuilder.TargetVelocity { get; set; }
World linear velocity for the motor, in units per second.
No results match this filter.