PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

AlignPosition

Show deprecated

AlignPosition

Show deprecated

AlignPosition is used to apply a force towards a location. Like other constraints, this has two Attachment|Attachments. In this case, the two attachments are constrained to be in the same position, although not necessarily in the same orientation.

By default, this constraint only applies force on the parent of Constraint/Attachment0|Attachment0, although it can be configured to apply force on both attachments.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

Properties

bool

ApplyAtCenterOfMass

When true, applies force at center of mass of Attachment0’s parent Part. When false, applied at Attachment0.

float

MaxForce

Maximum force the constraint can apply to achieve its goal. Only used if RigidityEnabled is false.

float

MaxVelocity

Maximum speed the Attachment can move when converging. Only used if RigidityEnabled is false.

bool

ReactionForceEnabled

When true the constraint will apply force on both Attachments to achieve the goal.

float

Responsiveness

Used to control how quickly the constraint will reach its goal. Higher values will cause the attachments to move together quicker. Value can be between 5 and 200.

bool

RigidityEnabled

When set to true, the solver will react as quickly as possible to move the attachments together. When false, the torque is dependent on AlignPosition/MaxForce, AlignPosition/MaxVelocity, and AlignPosition/Responsiveness.

Functions

Events