- 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.
推薦閱讀
- 數據庫系統原理及MySQL應用教程(第2版)
- Spring Cloud Alibaba核心技術與實戰案例
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Docker and Kubernetes for Java Developers
- 零基礎PHP學習筆記
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- Java 11 Cookbook
- Python數據可視化之Matplotlib與Pyecharts實戰
- Building an RPG with Unity 2018
- 利用Python進行數據分析
- Mastering openFrameworks:Creative Coding Demystified
- Learning Apache Cassandra
- 軟件項目管理實用教程
- Python預測分析實戰