BallJointBuilderclass
Builds a ball joint with optional swing and twist limits.
Methods8
Showing 8 methods
public Sandbox.BallJointBuilder WithDampingRatio(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.BallJointBuilder WithFrequency(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.BallJointBuilder WithFriction(float v)
Sets friction and disables the motor.
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.BallJointBuilder WithMaxTorque(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.BallJointBuilder WithSwingLimit(float v)
Sets and enables the swing angle limit.
| Parameter | Type | Description |
|---|---|---|
| v | float | The maximum swing angle in degrees. |
public Sandbox.BallJointBuilder WithTargetRotation(Rotation rotation)
Sets and enables the target-rotation spring motor.
| Parameter | Type | Description |
|---|---|---|
| rotation | Rotation | — |
public Sandbox.BallJointBuilder WithTargetVelocity(Vector3 v)
Sets the target angular velocity and enables the motor.
| Parameter | Type | Description |
|---|---|---|
| v | Vector3 | — |
public Sandbox.BallJointBuilder WithTwistLimit(float min, float max)
Sets and enables the twist angle limits.
| Parameter | Type | Description |
|---|---|---|
| min | float | The minimum twist angle in degrees. |
| max | float | The maximum twist angle in degrees. |
No results match this filter.
Properties12
Showing 12 properties
public float Sandbox.BallJointBuilder.DampingRatio { get; set; }
Spring motor damping ratio.
float—public bool Sandbox.BallJointBuilder.EnableMotor { get; set; }
Whether the joint's angular motor is enabled.
bool—public bool Sandbox.BallJointBuilder.EnableSwingLimit { get; set; }
Whether the joint enforces a swing angle limit.
bool—public bool Sandbox.BallJointBuilder.EnableTwistLimit { get; set; }
Whether the joint enforces a twist angle limit.
bool—public float Sandbox.BallJointBuilder.Frequency { get; set; }
Spring motor frequency in hertz.
float—public float Sandbox.BallJointBuilder.Friction { get; set; }
Component-style friction, used when the motor is disabled.
float—public float Sandbox.BallJointBuilder.MaxTorque { get; set; }
Maximum torque the velocity motor may apply.
float—public Sandbox.BallJoint.MotorMode Sandbox.BallJointBuilder.Motor { get; set; }
The motor mode, matching the ball component.
public float Sandbox.BallJointBuilder.SwingLimit { get; set; }
Maximum allowed swing angle in degrees.
float—public Rotation Sandbox.BallJointBuilder.TargetRotation { get; set; }
Spring motor target rotation relative to the joint frames.
public Vector3 Sandbox.BallJointBuilder.TargetVelocity { get; set; }
World angular velocity for the motor, in radians per second.
public Vector2 Sandbox.BallJointBuilder.TwistLimit { get; set; }
Minimum and maximum allowed twist angles in degrees.
No results match this filter.