创建“吸引到匹配网格”(Attract to Matching Mesh)约束
可以创建“吸引到匹配网格”(Attract to Matching Mesh)约束,以将 nCloth 对象的顶点吸引到具有匹配拓扑的网格的对应顶点。例如,使用该约束来为从必须位于特定形状或定位在场景中的角色滑落的衣服,创建特定的最终形状。
创建“吸引到匹配网格”(Attract to Matching Mesh)约束
选择要约束的 nCloth 对象。
选择 nConstraint > 吸引到匹配网格(nConstraint > Attract to Matching Mesh) >
。
此时将出现“创建吸引到匹配网格约束选项框”(Create Attract to Matching Mesh Constraint Options Box)窗口。
(可选)启用“使用集”(Use Sets),以将 nCloth 对象添加到动态约束选择集中。
单击“创建约束”(Create Constraint)或“应用”(Apply)。
将显示 nCloth 对象和目标 nCloth 网格之间的约束链接,且dynamicConstraint 节点将显示在“属性编辑器”(Attribute Editor)中。
dynamicConstraint 节点上的预设特性确定约束的类型(在这种情况下为“吸引到匹配网格”(Attract to Matching Mesh)约束)及其行为方式。例如,可以使用以下属性设置创建“吸引到匹配网格”(Attract to Matching Mesh)约束:
“弹簧”(Spring)作为“约束方法”(Constraint Method)
“全部到第一个”(All to First)作为“组件关系”(Component Relation)
“组件顺序”(Component Order)作为“连接方法”(Connection Method)
“在开始处”(At Start)作为“连接更新”(Connection Update)
请参见 dynamicConstraintShape。
(可选)调整 dynamicConstraint 节点上的“强度”(Strength)属性。
“强度”(Strength)属性确定 nCloth 对象与目标 nCloth 网格的相似度。