Game Development Reference
In-Depth Information
8.
Click Play.
The flap spins slowly around.
9.
Stop Play Mode.
10.
Check Free Spin.
11.
Click Play.
The Flap spins, but it is now affected by gravity and the Mass of the flap.
12.
While still in Play mode, uncheck Use Motor.
The flap swings down and slowly comes to rest. To speed up the settling process, you could
increase the Angular Drag in the Rigidbody component.
13.
Turn the Use Motor setting back on.
The Flap starts to spin again.
14.
Stop Play mode.
15.
Turn off Use Motor.
Wind
You are probably wondering how wind interacts with the physics objects. Let's try it and see what
happens.
1.
Focus in on Flap in the viewport.
2.
From the GameObject menu, Create Other, select Wind Zone.
3.
From the GameObject menu, use “Move to View” to bring the Wind Zone
into view.
4.
Rotate the Wind Zone so that it points at the Flap (Figure 3-30 ).
 
Search WWH ::




Custom Search