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
Whether the constraint is currently active in the physics simulation.
The orientation axes constrained by AlignOrientation.
The first attachment used by the constraint or effect.
The second attachment used by the constraint or effect.
The target orientation used in one-attachment mode.
The color of the constraint visualization.
Compatibility spelling of CFrame.
Whether the physics solver processes this constraint.
The maximum angular speed permitted by the orientation actuator.
The maximum torque the actuator can apply.
Whether alignment targets a world-space orientation or another attachment.
Whether orientation alignment constrains only the primary axis.
Whether the actuator applies an equal and opposite torque to the second assembly.
The response strength used to approach the actuator's target.
Whether the solver treats alignment as a rigid constraint rather than a force-limited response.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
AlignOrientation.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
AlignType
AlignOrientation.AlignType: Enum.AlignType = Enum.AlignType.AllAxesThe orientation axes constrained by AlignOrientation.
Attachment0
AlignOrientation.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
AlignOrientation.Attachment1: Attachment? = nilThe 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: CFrameCompatibility spelling of CFrame. Use CFrame in new code.
Enabled
AlignOrientation.Enabled: boolean = trueWhether the physics solver processes this constraint.
MaxAngularVelocity
AlignOrientation.MaxAngularVelocity: number = infThe maximum angular speed permitted by the orientation actuator.
MaxTorque
AlignOrientation.MaxTorque: number = 10000The maximum torque the actuator can apply.
Mode
AlignOrientation.Mode: Enum.OrientationAlignmentMode = Enum.OrientationAlignmentMode.OneAttachmentWhether alignment targets a world-space orientation or another attachment.
PrimaryAxisOnly
AlignOrientation.PrimaryAxisOnly: boolean = falseWhether orientation alignment constrains only the primary axis.
ReactionTorqueEnabled
AlignOrientation.ReactionTorqueEnabled: boolean = falseWhether the actuator applies an equal and opposite torque to the second assembly.
Responsiveness
AlignOrientation.Responsiveness: number = 10The response strength used to approach the actuator's target.
RigidityEnabled
AlignOrientation.RigidityEnabled: boolean = falseWhether the solver treats alignment as a rigid constraint rather than a force-limited response.
Visible
AlignOrientation.Visible: boolean = falseWhether 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
- 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