After creating the nCloth flag,
you can dynamically animate it to flap in the wind by altering certain Dynamic
Properties and Maya Nucleus solver Gravity
and Wind properties.
make nCloth appear to wave and flap in the wind
- Select the flag.
- Open the Attribute Editor and
select the nClothShape tab.
- In the Dynamic Properties section,
decrease Mass and increase Tangential Drag.
the density of the flag and Tangential Drag biases
the amount of drag applied to the flag relative to the surface tangent,
which is necessary otherwise the flat plane will not have any wind
- Change the Mass attribute’s
value to 0.5.
- Change the Tangential Drag attribute’s
value to 0.05.
- Play back the flag’s simulation.
The flag appears lighter,
however it still falls.
- Go to the beginning of the playback range.
- Select the nucleus tab.
- In the Gravity and Wind section,
increase the Wind Speed.
You can increase the
speed at which the flag flaps, as well as the amount of ripples
moving across the flag’s surface, by increasing the Maya Nucleus solver’s Wind
- Change the Wind Speed attribute’s
value to 10.
- Play back the pirate flag’s simulation.
The flag rises quickly
into the air, appearing to be tugged by the increased dynamic air
flow. The flag now waves and flaps forcefully, and ripples appear
on its surface.