本示例将介绍如何使用 nCloth 模拟 Soda 压碎。
创建 nCloth can
这是 can 和刚性 nCloth 输入网格的基本模型。
若要生成 soda can 模型 nCloth
- 在“nDynamics”菜单集中选择此 can,然后选择 nMesh > 创建 nCloth(nMesh > Create nCloth)。
- 在“属性编辑器”(Attribute Editor)中,选择“nucleus1”选项卡。
- 在“地平面”(Ground Plane)区域中启用“使用平面”(Use Plane)。
若要使 soda 被压碎
- 在属性编辑器中,选择“nClothShape1”选项卡。
- 在“动力学特性”(Dynamic Properties)中,按如下设置属性:
- “拉伸阻力”(Stretch Resistance):133
- “压缩阻力”(Compression Resistance):200
- “弯曲阻力”(Bend Resistance):17
- “弯曲角度衰减”(Bend Angle Dropoff):0.9
- “恢复角度”(Restitution Angle):6
- “恢复张力”(Restitution Tension):1000
- “变形阻力”(Deform Resistance):1.3
- “阻尼”(Damp):1