Game Development Reference
In-Depth Information
Figure 3-36. The cloth with a Random X Acceleration of 18
And finally, let's see what happens when the flap is set to spinning.
1.
Stop Play mode, and make sure the Accelerations have returned to 0.
2.
Select the Flap, and change its Hinge Joint's Axis Y to 1 and X and Z to 0 .
3.
Turn on Use Motor in the Hinge Joint component.
4.
Click Play, and watch as the cloth reacts to the torque (Figure 3-37 ).
Figure 3-37. The cloth reacting as the Flap spins
 
Search WWH ::




Custom Search