上QQ阅读APP看书,第一时间看更新
Spreading your wings
Run the project. Tap the screen to make Pierre fly higher; release to let him fall. Play with the action; Pierre rotates toward his vector and builds or loses momentum as you tap and release. Terrific! You have successfully implemented the core mechanic of our game. Take a minute to enjoy flying up and down, as in this screenshot: