Skip to content
Roblox API Reference

AlignPosition

Constraint which applies force to move two attachments together, or to move one attachment to a goal position.
Memory category
BaseParts
Own members
11
Inherited members
83
Subclasses
0
Siblings
18

Properties40

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 byAlignPosition11

Property categoryAlignmentMode

Property categoryAlignPosition

  • AlignPosition.ApplyAtCenterOfMass: boolean = false
    Whether force is applied to the parent of Attachment0 at that attachment's location, or at the parents' center of mass.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.Position: Vector3 = Vector3.zero
    The position to which the constraint should move its Attachment0.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.ReactionForceEnabled: boolean = false
    Whether the constraint applies force only to Attachment0, or to both attachments in equal and opposite directions.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.RigidityEnabled: boolean = false
    Whether force 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

  • AlignPosition.ForceLimitMode: Enum.ForceLimitMode = Enum.ForceLimitMode.Magnitude
    Determines how the constraint force will be limited. Only used if RigidityEnabled is false.
    • Read capabilities: Physics
    • Simulation access
  • Determines the axes that the constraint uses to limit the force. Only applies when RigidityEnabled is false and AlignPosition.ForceLimitMode is PerAxis. .
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.MaxAxesForce: Vector3 = Vector3.new(10000, 10000, 10000)
    Maximum force along each axis that the constraint can apply to achieve its goal.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.MaxForce: number = 10000
    Maximum force magnitude the constraint can apply to achieve its goal.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.MaxVelocity: number = INF
    Maximum speed the attachments can move when converging.
    • Read capabilities: Physics
    • Simulation access
  • AlignPosition.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

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