1.9 KiB
| title | description |
|---|---|
| AnimationConstraint | AnimationConstraint aligns two base parts with an animate-able kinematic or force-based joint. |
An Class.AnimationConstraint constrains its Class.Attachment|Attachments by an offset transform. It can be either kinematic for snap‑to behavior or it can follow the target trajectory using force and torque. limited by Class.AnimationConstraint.MaxForce|MaxForce and Class.AnimationConstraint.MaxTorque|MaxTorque.
Transform
The constraint's Class.AnimationConstraint.Transform|Transform is the internal Datatype.CFrame that's manipulated when the constraint is being animated. How this transform is reached depends on the constraint's kinematic setting.
Kinematic
When the constraint's Class.AnimationConstraint.IsKinematic|IsKinematic property is true, the connected parts snap to the transform instantly and precisely without participating in physics simulation. When false, the connected parts follow the trajectory using force and torque.
Force and torque
If the constraint is not kinematic, the connected parts follow a trajectory toward the transform using a maximum force/torque limited by Class.AnimationConstraint.MaxForce|MaxForce and Class.AnimationConstraint.MaxTorque|MaxTorque respectively.