Open Asterune
HingeConstraint

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

Members20
Properties19
Methods1

Properties

Active

HingeConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

ActuatorType

HingeConstraint.ActuatorType: Enum.ActuatorType = Enum.ActuatorType.None

Selects no actuator, a velocity motor, or a position servo.

AngularSpeed

HingeConstraint.AngularSpeed: number = 0

The rotational speed used by the angular servo.

AngularVelocity

HingeConstraint.AngularVelocity: number = 0

The target angular velocity of the rotational motor.

Attachment0

HingeConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

HingeConstraint.Attachment1: Attachment? = nil

The 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 = 0

The current relative rotation angle of the attachments, in degrees.

Enabled

HingeConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

LimitsEnabled

HingeConstraint.LimitsEnabled: boolean = false

Whether the constraint enforces its positional or angular limits.

LowerLimit

HingeConstraint.LowerLimit: number = -45

The minimum permitted translation along the constraint axis, in studs.

MotorMaxAcceleration

HingeConstraint.MotorMaxAcceleration: number = inf

The maximum linear acceleration permitted for the motor.

MotorMaxTorque

HingeConstraint.MotorMaxTorque: number = inf

The maximum torque the angular motor can apply.

Radius

HingeConstraint.Radius: number = 0.15

The radius of the constraint visualization.

Restitution

HingeConstraint.Restitution: number = 0

The restitution applied when a constraint limit is reached.

ServoMaxTorque

HingeConstraint.ServoMaxTorque: number = inf

The maximum torque the orientation servo can apply.

TargetAngle

HingeConstraint.TargetAngle: number = 0

The angular position sought by a servo, in degrees.

UpperLimit

HingeConstraint.UpperLimit: number = 45

The maximum permitted translation along the constraint axis, in studs.

Visible

HingeConstraint.Visible: boolean = false

Whether 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

Inherited47

Constraint