Time for action – add the Paddle

We'll borrow a term from Pong by naming our hittable surface paddle. The paddle will be the thing the player uses to bounce the ball and keep it up in the air. We can build the paddle using Unity's built-in Cube primitive, like we did with the Sphere.

  1. In the menu, navigate to GameObject | Create Other | Cube, as shown in the following screenshot:
    Time for action – add the Paddle

    Now, according to Hierarchy, we have three instances of GameObject in our Scene: the Ball, a Cube, and the Main Camera. Let's rename our Cube to remind us what it will do in the game:

  2. If the Cube is not selected, click on its name in the Hierarchy panel and rename it Paddle ...

Get Unity 4.x Game Development by Example Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.