HingeConstraint
Roblox's HingeConstraint: in Play its two Attachments stay together and their parts turn only about Attachment0's X (Roblox's Axis), like a door or a lid; LimitsEnabled keeps the turn between LowerAngle and UpperAngle degrees.
An anchored part (or none) holds its end where it is. ActuatorType Servo turns it toward TargetAngle at AngularSpeed (rad/s) with up to ServoMaxTorque; Motor spins it at AngularVelocity (rad/s) with up to MotorMaxTorque (0 turns nothing), reaching that speed at MotorMaxAcceleration (rad/s squared). Visible shows a mark along the axis.
Properties
Hinge
| Name | Type | Default |
|---|---|---|
| ActuatorType | ("None" | "Motor" | "Servo" | Enum.ActuatorType) | None None, Motor, Servo |
| Attachment0 | Attachment? | |
| Attachment1 | Attachment? | |
| Enabled | boolean | true |
Servo
| AngularSpeed | number | 0 0 to 1e+06 |
| ServoMaxTorque | number | 0 0 to 1e+30 |
| TargetAngle | number | 0 -180 to 180 |
Motor
| AngularVelocity | number | 0 |
| MotorMaxAcceleration | number | inf 0 to 1e+30 |
| MotorMaxTorque | number | 0 0 to 1e+30 |
Limits
| LimitsEnabled | boolean | false |
| LowerAngle | number | -45 -180 to 180 |
| UpperAngle | number | 45 -180 to 180 |
Appearance
| Visible | boolean | false |
