- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 190字
- 2021-04-02 18:34:05
Time for action – Moving the ball Into the "sky"
We want the ball to start somewhere in the "sky" (the area above the "ground" plane) so that it will have somewhere to fall from.
- Make sure that the Ball Game Object is selected. Click on it in the Hierarchy panel.
- See the control gizmo poking out from the center of the ball? You can either click-and-drag the green Y-axis to move the ball up, or type a new Y position for it in the Inspector panel. As we want to stay on the same page together, let's type it. Look in the Inspector panel and find the Y field—it's next to Position in the Transform component of the Ball.
- Change the Y position from 0 to 2.
- Press the Enter key to commit this change.
- Your ball may not have begun life at the origin. Make sure that the values for its X and Z position are at 0.
- The Ball Game Object should now be hovering two units above the ground plane, which is a marvelous height from where any self-respecting ball can endeavor to fall.
推薦閱讀
- Hyper-V 2016 Best Practices
- Ext JS Data-driven Application Design
- Java編程指南:基礎(chǔ)知識(shí)、類庫(kù)應(yīng)用及案例設(shè)計(jì)
- AngularJS深度剖析與最佳實(shí)踐
- Python高效開發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第2版)
- Python算法指南:程序員經(jīng)典算法分析與實(shí)現(xiàn)
- Cocos2d-x Game Development Blueprints
- R語言:邁向大數(shù)據(jù)之路(加強(qiáng)版)
- SpringBoot從零開始學(xué)(視頻教學(xué)版)
- Penetration Testing with the Bash shell
- Koa與Node.js開發(fā)實(shí)戰(zhàn)
- 算法學(xué)習(xí)與應(yīng)用從入門到精通
- OpenCV:Computer Vision Projects with Python
- 從Excel到Python:用Python輕松處理Excel數(shù)據(jù)
- Python游戲趣味編程