HingeJointBuilderclass
Builds a hinge joint that rotates around one axis.
Methods7
Showing 7 methods
public Sandbox.HingeJointBuilder WithDampingRatio(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.HingeJointBuilder WithFrequency(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.HingeJointBuilder WithFriction(float v)
Sets friction and disables the motor.
| Parameter | Type | Description |
|---|---|---|
| v | float | — |
public Sandbox.HingeJointBuilder WithMaxTorque(float v)
| Parameter | Type | Description |
|---|---|---|
| v | float | The maximum motor torque. |
public Sandbox.HingeJointBuilder WithTargetAngle(float angle)
Sets and enables the target-angle spring motor.
| Parameter | Type | Description |
|---|---|---|
| angle | float | — |
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.
Properties10
Showing 10 properties
public float Sandbox.HingeJointBuilder.DampingRatio { get; set; }
Spring motor damping ratio.
float—public bool Sandbox.HingeJointBuilder.EnableMotor { get; set; }
Whether the hinge's angular motor is enabled.
bool—public bool Sandbox.HingeJointBuilder.EnableTwistLimit { get; set; }
Whether the hinge enforces a twist angle limit.
bool—public float Sandbox.HingeJointBuilder.Frequency { get; set; }
Spring motor frequency in hertz.
float—public float Sandbox.HingeJointBuilder.Friction { get; set; }
Component-style friction, used when the motor is disabled.
float—public float Sandbox.HingeJointBuilder.MaxTorque { get; set; }
Maximum torque the velocity motor may apply.
float—public Sandbox.HingeJoint.MotorMode Sandbox.HingeJointBuilder.Motor { get; set; }
The motor mode, matching the hinge component.
public float Sandbox.HingeJointBuilder.TargetAngle { get; set; }
Spring motor target angle in degrees.
float—public Vector3 Sandbox.HingeJointBuilder.TargetVelocity { get; set; }
World angular velocity for the motor, in radians per second.
public Vector2 Sandbox.HingeJointBuilder.TwistLimit { get; set; }
The minimum and maximum allowed twist angles (degrees).
No results match this filter.