API ReferenceSandbox
BallJointBuilderclass
Builds a ball joint with optional swing and twist limits.
Methods2
Showing 2 methods
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 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.
Properties4
Showing 4 properties
public bool Sandbox.BallJointBuilder.EnableSwingLimit { get; set; }
Whether the joint enforces a swing angle limit.
Returns:
bool—public bool Sandbox.BallJointBuilder.EnableTwistLimit { get; set; }
Whether the joint enforces a twist angle limit.
Returns:
bool—public float Sandbox.BallJointBuilder.SwingLimit { get; set; }
Maximum allowed swing angle in degrees.
Returns:
float—public Vector2 Sandbox.BallJointBuilder.TwistLimit { get; set; }
Minimum and maximum allowed twist angles in degrees.
No results match this filter.