We use cookies on this site to enhance your user experience

A hinge allows two Attachments to rotate about one axis. A HingeConstraint constrains its two attachments so that they both occupy the same position and that their x-axes point in the same direction. The constraint allows the attachments to rotate about their x-axes.

Hinges can also be configured to actuate rotation. If HingeConstraint/ActuatorType is set to Enum/ActuatorType, then the hinge will attempt to rotate the attachments with the goal of reaching HingeConstraint/AngularVelocity. This rotation is limited by both HingeConstraint/MotorMaxAcceleration and HingeConstraint/MotorMaxTorque.

If ActuatorType is set to Enum/ActuatorType, then the hinge will attempt to rotate to an angle specified by HingeConstraint/TargetAngle. This rotation is limited by both HingeConstraint/AngularSpeed and HingeConstraint/ServoMaxTorque.

Both actuated and free spinning rotation using a HingeConstraint can be limited by setting HingeConstraint/LimitsEnabled to true.


Properties

Name Type Description
ActuatorType

Sets whether the rotation of the HingeConstraint is actuated and, if so, what kind of actuation.

float

The desired angular speed a HingeConstraint with HingeConstraint/ActuatorType set to Enum/ActuatorType will attempt to maintain while rotating towards its HingeConstraint/TargetAngle. Measured in radians/second.

float

The angular velocity a HingeConstraint with HingeConstraint/ActuatorType set to Enum/ActuatorType will attempt to achieve. Measured in radians/second.

float

The current angle of the HingeConstraint.

bool

Sets whether the HingeConstraint will limit the range of rotation.

float

The minimum rotation angle the HingeConstraint will allow if HingeConstraint/LimitsEnabled is true.

float

The maximum angular acceleration a HingeConstraint with HingeConstraint/ActuatorType set to Enum/ActuatorType can apply to achieve its HingeConstraint/AngularVelocity. Measured in radians/(second squared).

float

The maximum torque a HingeConstraint with HingeConstraint/ActuatorType set to Enum/ActuatorType can apply when trying to reach its desired HingeConstraint/AngularVelocity.

float

The visualized radius of the HingeConstraint.

float

How elastic Attachment connected by a HingeConstraint will be when they reach the end of the range when HingeConstraint/LimitsEnabled is true. Constrained between 0 and 1.

float

The maximum torque a HingeConstraint with HingeConstraint/ActuatorType set to Enum/ActuatorType can apply when trying to reach its desired HingeConstraint/TargetAngle.

float

The target angle a HingeConstraint will attempt to rotate to if its HingeConstraint/ActuatorType is set to Enum/ActuatorType. Measured in degrees.

float

The maximum rotation angle the HingeConstraint will allow if HingeConstraint/LimitsEnabled is true.

Inherited from Instance , Constraint

Archivable ClassName DataCost Name Parent RobloxLocked Attachment0 Attachment1 Color Enabled Visible