HingeJointBuilderclass

Builds a hinge joint that rotates around one axis.

objectPhysicsJointBuilderHingeJointBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.HingeJointBuilder : Sandbox.PhysicsJointBuilder

Methods3

Showing 3 methods

public Sandbox.HingeJointBuilder WithTwistLimit(float min, float max)PUBLIC

Sets and enables the twist angle limits.

ParameterTypeDescription
minfloatThe minimum twist angle in degrees.
maxfloatThe maximum twist angle in degrees.

Properties5

Showing 5 properties

public bool Sandbox.HingeJointBuilder.EnableMotor { get; set; }PUBLICGETSET

Whether the hinge's angular motor is enabled.

Returns:bool

public bool Sandbox.HingeJointBuilder.EnableTwistLimit { get; set; }PUBLICGETSET

Whether the hinge enforces a twist angle limit.

Returns:bool

public float Sandbox.HingeJointBuilder.MaxTorque { get; set; }PUBLICGETSET

Maximum torque the motor may apply.

Returns:float

On this page