HingeConstraint

Show Deprecated

A HingeConstraint allows two Attachments to rotate about one axis, constraining the two Attachments so that they both occupy the same position and that their X axes point in the same direction.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.

Angular Power

Hinges can be configured to actuate rotation. If a hinge's ActuatorType is set to Motor, it attempts to rotate the attachments with the goal of reaching its AngularVelocity. You can further control this rotation through both MotorMaxAcceleration and MotorMaxTorque. If a hinge's ActuatorType is set to Servo, it attempts to rotate to an angle specified by TargetAngle. This rotation is controlled by both AngularSpeed and ServoMaxTorque.

Limits

You can set limits to restrict the rotation of a hinge, useful for mechanisms like doors which should only swing open or closed within a set range. Enabling the LimitsEnabled property exposes the LowerAngle and UpperAngle limits, as well as Restitution which defines the elasticity of the attachments when they reach either limit.

Summary

Properties

Properties inherited from Constraint

Properties

Properties

ActuatorType

Read Parallel

AngularResponsiveness

Read Parallel

AngularSpeed

Read Parallel

AngularVelocity

Read Parallel

CurrentAngle

Read Only
Not Replicated
Read Parallel

LimitsEnabled

Read Parallel

LowerAngle

Read Parallel

MotorMaxAcceleration

Read Parallel

MotorMaxTorque

Read Parallel

Radius

Read Parallel

Restitution

Read Parallel

ServoMaxTorque

Read Parallel

TargetAngle

Read Parallel

UpperAngle

Read Parallel

Methods

Events