Time for action – create the Ball

Let's add a built-in GameObject to the Scene view:

  1. In the menu, click on GameObject.
  2. Point to Create Other.
  3. Click on Sphere.
    Time for action – create the Ball

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. A component is a piece of functionality that modifies or augments a GameObject. Look at the Inspector panel to see what the Sphere's components are:

  • Transform: This determines how a game object is positioned, rotated, and scaled (made big or small) in your Scene view.
  • Mesh Filter: This component takes a mesh, and runs it through the Mesh Renderer. A Mesh defines the connected vertices that comprise a 3D structure.
  • 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.
    What just happened – that's all there is to it?

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.