# AlignPosition

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Constraint](https://rapi.sleaze.dev/classes/Constraint.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Memory category: BaseParts
- HTML page: https://rapi.sleaze.dev/classes/AlignPosition/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/AlignPosition

Constraint which applies force to move two attachments together, or to move one attachment to a goal position.

## Properties

### Mode

```luau
AlignPosition.Mode: Enum.PositionAlignmentMode = Enum.PositionAlignmentMode.TwoAttachment
```

- Tags: Read capabilities: Physics, Simulation access

Whether the constraint uses one or two attachments in calculating its goal.

### ApplyAtCenterOfMass

```luau
AlignPosition.ApplyAtCenterOfMass: boolean = false
```

- Tags: Read capabilities: Physics, Simulation access

Whether force is applied to the parent of [`Attachment0`](https://rapi.sleaze.dev/classes/Constraint.md) at that attachment's location, or at the parents' center of mass.

### Position

```luau
AlignPosition.Position: Vector3 = Vector3.zero
```

- Tags: Read capabilities: Physics, Simulation access

The position to which the constraint should move its [`Attachment0`](https://rapi.sleaze.dev/classes/Constraint.md).

### ReactionForceEnabled

```luau
AlignPosition.ReactionForceEnabled: boolean = false
```

- Tags: Read capabilities: Physics, Simulation access

Whether the constraint applies force only to [`Attachment0`](https://rapi.sleaze.dev/classes/Constraint.md), or to both attachments in equal and opposite directions.

### RigidityEnabled

```luau
AlignPosition.RigidityEnabled: boolean = false
```

- Tags: Read capabilities: Physics, Simulation access

Whether force is dependent on other properties, or if the physics solver reacts as quickly as possible to complete the alignment.

### ForceLimitMode

```luau
AlignPosition.ForceLimitMode: Enum.ForceLimitMode = Enum.ForceLimitMode.Magnitude
```

- Tags: Read capabilities: Physics, Simulation access

Determines how the constraint force will be limited. Only used if [`RigidityEnabled`](https://rapi.sleaze.dev/classes/AlignPosition.md) is `false`.

### ForceRelativeTo

```luau
AlignPosition.ForceRelativeTo: Enum.ActuatorRelativeTo = Enum.ActuatorRelativeTo.World
```

- Tags: Read capabilities: Physics, Simulation access

Determines the axes that the constraint uses to limit the force. Only applies when [`RigidityEnabled`](https://rapi.sleaze.dev/classes/AlignPosition.md) is `false` and [`AlignPosition.ForceLimitMode`](https://rapi.sleaze.dev/classes/AlignPosition.md) is `PerAxis`. .

### MaxAxesForce

```luau
AlignPosition.MaxAxesForce: Vector3 = Vector3.new(10000, 10000, 10000)
```

- Tags: Read capabilities: Physics, Simulation access

Maximum force along each axis that the constraint can apply to achieve its goal.

### MaxForce

```luau
AlignPosition.MaxForce: number = 10000
```

- Tags: Read capabilities: Physics, Simulation access

Maximum force magnitude the constraint can apply to achieve its goal.

### MaxVelocity

```luau
AlignPosition.MaxVelocity: number = INF
```

- Tags: Read capabilities: Physics, Simulation access

Maximum speed the attachments can move when converging.

### Responsiveness

```luau
AlignPosition.Responsiveness: number = 10
```

- Tags: Read capabilities: Physics, Simulation access

Controls how quickly the constraint reaches its goal. Higher values cause the attachment(s) to align more rapidly.

## Inherited members

- From [Constraint](https://rapi.sleaze.dev/classes/Constraint.md): `Color`, `Visible`, `Attachment0`, `Attachment1`, `Active`, `Enabled`, `GetDebugAppliedForce`, `GetDebugAppliedTorque`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
