一个 动画约束 限制其 Attachments ,使其被 Transform CFrame 抵消。Transform 可以在 RunService.PreSimulation 或由 Animator 手动设置。
概要
属性
切换是否使 AnimationConstraint 是动画或物理模拟。
约束可以应用的最大力量模量,以实现其目标。
约束可以施加最大扭矩以达到目标。
描述 AnimationConstraint 接头点的当前动画抵消。
指示约束目前在世界中是否激活。
连接到 Attachment 的 Constraint.Attachment1 。
连接到 Attachment 的 Constraint.Attachment0 。
约束的颜色。
切换是否启用约束。
切换约束的可见性。
属性
IsKinematic
当真实时,连接的零件完全遵循 Transform 而不参与物理模拟。当为 false 时,连接的部件使用限制为 AnimationConstraint.MaxForce 和 AnimationConstraint.MaxTorque 的力和扭矩跟随曲线。
Transform
当 CFrame 被动画时,内部的 AnimationConstraint 被操纵。
时间点
AnimationConstraint 变形不会立即应用,而是在 RunService.PreSimulation 之后的并行工作中的批量,即物理步骤之前立即。延迟的批量更新比许多即时更新要有效得多。
如果 AnimationConstraint 是动画模型的一部分,包含 Animator ,那么 AnimationConstraint.Transform 通常会被 Animator 在 RunService.PreAnimation 之后和 RunService.PreSimulation 之前覆盖。