- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 201字
- 2021-04-02 18:34:04
Time for action – Creating the ball
Add a built-in GameObject to the Scene.
- In the menu, click on GameObject.
- Point to Create Other and then click on Sphere.
What just happened – that's all there is to it?
Well, yeah, actually! Unity has a number of prebuilt simple 3D models, also known as primitives, which we can use to get started. You've just created a built-in Game object with four components on it. Look at the Inspector panel to see what those components are:
- Transform: This determines how a Game Object is positioned, rotated, and scaled (made big or small) in your Scene.
- Mesh Filter: This component takes a mesh, which is the stuff our Game Object is made from, and runs it through the Mesh Renderer.
- Sphere Collider: This is a sphere-shaped boundary on our Game Object that helps Unity figure out when instances of Game Object Colliders touch, overlap, or stop touching.
- Mesh Renderer: This component enables the player to see our meshes. Without it, meshes don't get drawn or rendered to the screen.
We'll get a better understanding of what exactly a Mesh is when we add the Paddle to the Scene a few steps from now.
推薦閱讀
- Embedded Linux Projects Using Yocto Project Cookbook
- Learning Python Web Penetration Testing
- 深入理解Android(卷I)
- 零基礎PHP學習筆記
- Instant Apache Stanbol
- 云原生Spring實戰
- NumPy Essentials
- ASP.NET程序設計教程
- 實戰Java高并發程序設計(第2版)
- IoT Projects with Bluetooth Low Energy
- Distributed Computing in Java 9
- Parallel Programming with Python
- C語言進階:重點、難點與疑點解析
- 中小企業網站建設與管理(靜態篇)
- Mastering MeteorJS Application Development