API ReferenceSandbox
HingeJointBuilderclass
Builds a hinge joint that rotates around one axis.
Methods3
Showing 3 methods
public Sandbox.HingeJointBuilder WithMaxTorque(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | The maximum motor torque. |
public Sandbox.HingeJointBuilder WithTargetVelocity(Vector3 v)
Sets the target angular velocity and enables the motor.
| Parameter | Type | Description |
|---|---|---|
| v | Vector3 | The target angular velocity. |
public Sandbox.HingeJointBuilder 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.
Properties5
Showing 5 properties
public bool Sandbox.HingeJointBuilder.EnableMotor { get; set; }
Whether the hinge's angular motor is enabled.
Returns:
bool—public bool Sandbox.HingeJointBuilder.EnableTwistLimit { get; set; }
Whether the hinge enforces a twist angle limit.
Returns:
bool—public float Sandbox.HingeJointBuilder.MaxTorque { get; set; }
Maximum torque the motor may apply.
Returns:
float—public Vector3 Sandbox.HingeJointBuilder.TargetVelocity { get; set; }
Target angular velocity for the motor.
public Vector2 Sandbox.HingeJointBuilder.TwistLimit { get; set; }
The minimum and maximum allowed twist angles (degrees).
No results match this filter.