AlignPosition
The AlignPosition constraint applies force to move two attachments together, or to move one attachment to a goal position. As indicated by the name, it only affects the position of the attachments, not their orientation (to align attachments by orientation, see AlignOrientation).
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Force Location
By default, force is applied to the parent of Attachment0 at that attachment's location, meaning that if the parent's center of mass is not aligned with the direction of the force, torque will be applied as well as force. Alternatively, force can be applied to the parents' center of mass by toggling on ApplyAtCenterOfMass.
Reactionary Force
By default, the constraint only applies force to Attachment0 while Attachment1 remains unaffected. If desired, force can be applied to both attachments in equal and opposite directions by enabling ReactionForceEnabled.
Force Limits
You can configure this constraint to apply the maximum force that constraints allow through the RigidityEnabled property. When true, the physics solver reacts as quickly as possible to complete the alignment. When false, the force applied by the constraint is limited based on ForceLimitMode, MaxVelocity, and Responsiveness. See ForceLimitMode for further details.
Attachment Mode
This constraint can use either one or two attachments in calculating its goal. See Mode for details.
Summary
Properties
Whether force is applied to the parent of Attachment0 at that attachment's location, or at the parents' center of mass.
Determines how the constraint force will be limited. Only used if RigidityEnabled is false.
Determines the axes that the constraint uses to limit the force. Only applies when RigidityEnabled is false and AlignPosition.ForceLimitMode is PerAxis. .
Maximum force along each axis that the constraint can apply to achieve its goal.
Maximum force magnitude the constraint can apply to achieve its goal.
Maximum speed the attachments can move when converging.
Whether the constraint uses one or two attachments in calculating its goal.
The position to which the constraint should move its Attachment0.
Whether the constraint applies force only to Attachment0, or to both attachments in equal and opposite directions.
Controls how quickly the constraint reaches its goal. Higher values cause the attachment(s) to align more rapidly.
Whether force is dependent on other properties, or if the physics solver reacts as quickly as possible to complete the alignment.
Properties
Indicates if the constraint is currently active in the world.
The Attachment that is connected to Constraint.Attachment1.
The Attachment that is connected to Constraint.Attachment0.
The color of the constraint.
Toggles whether or not the constraint is enabled.
Toggles the constraint's visibility.