Skip to content
Roblox API Reference

AlignOrientation

Constraint which applies torque to align two attachments, or to align one attachment with a goal orientation.
Memory category
BaseParts
Own members
12
Inherited members
83
Subclasses
0
Siblings
18

Properties41

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromConstraint6

Property categoryAppearance

Property categoryAttachments

Property categoryBehavior

  • Indicates if the constraint is currently active in the world.
    • Read only
    • Read capabilities: Physics
    • Simulation access
  • Toggles whether or not the constraint is enabled.
    • Read capabilities: Physics
    • Simulation access
Defined byAlignOrientation12

Property categoryAlignmentMode

Property categoryAlignOrientation

  • AlignOrientation.AlignType: Enum.AlignType = Enum.AlignType.AllAxes
    The constraint's axis alignment type.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.PrimaryAxisOnly: boolean = false
    Determines how the constraint's axes are affected by torque.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.ReactionTorqueEnabled: boolean = false
    Whether the constraint applies torque only to Attachment0, or to both attachments in equal and opposite directions.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.RigidityEnabled: boolean = false
    Whether torque is dependent on other properties, or if the physics solver reacts as quickly as possible to complete the alignment.
    • Read capabilities: Physics
    • Simulation access

Property categoryCompliance

  • AlignOrientation.MaxAngularVelocity: number = INF
    Maximum angular velocity the constraint can use to reach its goal.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.MaxTorque: number = 10000
    Maximum torque the constraint can use to reach its goal.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.Responsiveness: number = 10
    Controls how quickly the constraint reaches its goal. Higher values cause the attachment(s) to align more rapidly.
    • Read capabilities: Physics
    • Simulation access

Property categoryTargetOrientation

  • AlignOrientation.CFrame: CFrame = CFrame.identity
    The CFrame orientation with which the constraint will attempt to match the orientation of Attachment0.
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.LookAtPosition: Vector3 = Vector3.zero
    A Vector3 world space location toward which the primary axis will attempt to align.
    • Not replicated
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.PrimaryAxis: Vector3 = Vector3.new(1, 0, 0)
    The direction of the goal's X axis, represented as a unit Vector3.
    • Not replicated
    • Read capabilities: Physics
    • Simulation access
  • AlignOrientation.SecondaryAxis: Vector3 = Vector3.new(0, 1, 0)
    The direction of the goal's Y axis, represented as a unit Vector3.
    • Not replicated
    • Read capabilities: Physics
    • Simulation access

Methods44

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Inherited fromConstraint2

Events10

Inherited fromObject1
Inherited fromInstance9