Making nCloth flap in dynamic wind

 
 
 

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.

To make nCloth appear to wave and flap in the wind

  1. Select the flag.
  2. Open the Attribute Editor and select the nClothShape1 tab.
  3. In the Dynamic Properties section, decrease Mass and increase Tangential Drag.

    Mass specifies 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 resistance.

    • Change the Mass attribute’s value to 0.5.
    • Change the Tangential Drag attribute’s value to 0.05.
  4. Play back the flag’s simulation.

    The flag appears lighter, however it still falls.

  5. Go to the beginning of the playback range.
  6. Select the nucleus1 tab.
  7. In the Gravity and Wind section, increase the Wind Speed attribute's value to 15.

    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 speed.

  8. Play back the pirate flag’s simulation.

    The flag rises 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.