This example will show you how to use nCloth to simulate a soda can being crushed.
Create an nCloth can
This is the base model for the can and the input mesh for your rigid nCloth.
To make the soda can model nCloth.
- In the menu set select the can and select nMesh > Create nCloth.
- In the , select the tab.
- In the section turn on .
To make the soda can crushable
- In the Attribute Editor, select the tab.
- In the set the attributes as follows:
- : 133
- : 200
- : 17
- : 0.9
- : 6
- : 1000
- : 1.3
- : 1
Crushing the can
The soda can is now configured to react like an aluminum can. You can now crush it.
To crush the soda can
- Select Create > Polygon Primitives > .
A polygon cube appears at the origin. The cube is obscured by the can when it is initially created.
- Select the from the Tool Box and move the cube up so that it rests above the can.
- Select the and scale the cube so that its length and width are the same as those of the can.
- Select nMesh > Create Passive Collider.
- Select the from the Tool Box.
- In the menu set, select nSolver > Interactive Playback.
- As the scene plays, move the cube into the can at various angles and speeds.
As you move the cube down the can deforms. You can experiment by hitting the can from the side or on an angle to see different
deformations. If you find the animation is resetting before you can experiment completely, increase the playback end time.