HingeConstraint
Allows rotation around a shared attachment axis.
- Creatable
Instance.new("HingeConstraint")- Inherits
- ConstraintInstance
- Replication
- Standard
Behavior
HingeConstraint allows rotation around a shared attachment axis.
Summary
Whether the constraint is currently active in the physics simulation.
Selects no actuator, a velocity motor, or a position servo.
The rotational speed used by the angular servo.
The target angular velocity of the rotational motor.
The first attachment used by the constraint or effect.
The second attachment used by the constraint or effect.
The color of the constraint visualization.
The current relative rotation angle of the attachments, in degrees.
Whether the physics solver processes this constraint.
Whether the constraint enforces its positional or angular limits.
The minimum permitted translation along the constraint axis, in studs.
The maximum linear acceleration permitted for the motor.
The maximum torque the angular motor can apply.
The radius of the constraint visualization.
The restitution applied when a constraint limit is reached.
The maximum torque the orientation servo can apply.
The angular position sought by a servo, in degrees.
The maximum permitted translation along the constraint axis, in studs.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
HingeConstraint.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
ActuatorType
HingeConstraint.ActuatorType: Enum.ActuatorType = Enum.ActuatorType.NoneSelects no actuator, a velocity motor, or a position servo.
AngularSpeed
HingeConstraint.AngularSpeed: number = 0The rotational speed used by the angular servo.
AngularVelocity
HingeConstraint.AngularVelocity: number = 0The target angular velocity of the rotational motor.
Attachment0
HingeConstraint.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
HingeConstraint.Attachment1: Attachment? = nilThe second attachment used by the constraint or effect.
Color
HingeConstraint.Color: Color3 = Color3.new(1, 0.686, 0)The color of the constraint visualization.
CurrentAngle
HingeConstraint.CurrentAngle: number = 0The current relative rotation angle of the attachments, in degrees.
Enabled
HingeConstraint.Enabled: boolean = trueWhether the physics solver processes this constraint.
LimitsEnabled
HingeConstraint.LimitsEnabled: boolean = falseWhether the constraint enforces its positional or angular limits.
LowerLimit
HingeConstraint.LowerLimit: number = -45The minimum permitted translation along the constraint axis, in studs.
MotorMaxAcceleration
HingeConstraint.MotorMaxAcceleration: number = infThe maximum linear acceleration permitted for the motor.
MotorMaxTorque
HingeConstraint.MotorMaxTorque: number = infThe maximum torque the angular motor can apply.
Radius
HingeConstraint.Radius: number = 0.15The radius of the constraint visualization.
Restitution
HingeConstraint.Restitution: number = 0The restitution applied when a constraint limit is reached.
ServoMaxTorque
HingeConstraint.ServoMaxTorque: number = infThe maximum torque the orientation servo can apply.
TargetAngle
HingeConstraint.TargetAngle: number = 0The angular position sought by a servo, in degrees.
UpperLimit
HingeConstraint.UpperLimit: number = 45The maximum permitted translation along the constraint axis, in studs.
Visible
HingeConstraint.Visible: boolean = falseWhether the constraint visualization is displayed.
Methods
GetExecutionGroup
HingeConstraint:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying