Open Asterune
AlignOrientation

AlignOrientation

Applies torque to align an attachment with a target orientation.

Creatable
Instance.new("AlignOrientation")
Inherits
ConstraintInstance
Replication
Standard

Behavior

AlignOrientation applies torque to align an attachment with a target orientation.

Summary

Members17
Properties16
Methods1

Properties

Active

AlignOrientation.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

AlignType

AlignOrientation.AlignType: Enum.AlignType = Enum.AlignType.AllAxes

The orientation axes constrained by AlignOrientation.

Attachment0

AlignOrientation.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

AlignOrientation.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

CFrame

AlignOrientation.CFrame: CFrame = CFrame.new(0, 0, 0)

The target orientation used in one-attachment mode.

Color

AlignOrientation.Color: Color3 = Color3.new(1, 0.686, 0)

The color of the constraint visualization.

CoordinateFrame

AlignOrientation.CoordinateFrame: CFrame

Compatibility spelling of CFrame. Use CFrame in new code.

Enabled

AlignOrientation.Enabled: boolean = true

Whether the physics solver processes this constraint.

MaxAngularVelocity

AlignOrientation.MaxAngularVelocity: number = inf

The maximum angular speed permitted by the orientation actuator.

MaxTorque

AlignOrientation.MaxTorque: number = 10000

The maximum torque the actuator can apply.

Mode

Whether alignment targets a world-space orientation or another attachment.

PrimaryAxisOnly

AlignOrientation.PrimaryAxisOnly: boolean = false

Whether orientation alignment constrains only the primary axis.

ReactionTorqueEnabled

AlignOrientation.ReactionTorqueEnabled: boolean = false

Whether the actuator applies an equal and opposite torque to the second assembly.

Responsiveness

AlignOrientation.Responsiveness: number = 10

The response strength used to approach the actuator's target.

RigidityEnabled

AlignOrientation.RigidityEnabled: boolean = false

Whether the solver treats alignment as a rigid constraint rather than a force-limited response.

Visible

AlignOrientation.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

AlignOrientation: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