> nCloth
> Lesson 2: Creating nCloth constraints
![]()
Making nCloth flap in dynamic wind
After creating the nCloth flag, you can dynamically animate it to flap in the wind by increasing certain nCloth Surface Properties and Maya Nucleus solver Gravity and Wind properties.
To make nCloth appear to wave and flap in the wind
- Select the flag.
- Open the Attribute Editor and select the nClothShape tab.
- In the Surface Properties section, increase Lift and Drag.
Lift specifies the amount of lift that is applied to the flag and Drag specifies the amount of drag applied to the flag, causing resistance to the Maya Nucleus solver’s dynamic wind.
- Change the Lift attribute’s value to 1.0.
- Change the Drag attribute’s value to 0.6.
- Play back the flag’s simulation.
The flag appears to rise and then begin to ripple and flap in the Maya Nucleus solver’s dynamic wind.
- 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 Speed.
- Change the Wind Speed attribute’s value to 0.4.
- 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 more forcefully, and an increased number of ripples appear on its surface.