- 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.
推薦閱讀
- SpringMVC+MyBatis快速開發(fā)與項目實戰(zhàn)
- 信息可視化的藝術(shù):信息可視化在英國
- Mastering Articulate Storyline
- Linux環(huán)境編程:從應用到內(nèi)核
- SQL Server 2016數(shù)據(jù)庫應用與開發(fā)習題解答與上機指導
- Node.js Design Patterns
- Arduino家居安全系統(tǒng)構(gòu)建實戰(zhàn)
- 深入淺出React和Redux
- Visual Basic程序設(shè)計習題與上機實踐
- Learning Docker Networking
- Practical Predictive Analytics
- SQL Server 2014 Development Essentials
- 絕密原型檔案:看看專業(yè)產(chǎn)品經(jīng)理的原型是什么樣
- HTML5+CSS+JavaScript深入學習實錄
- Puppet Essentials