O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - add the Paddle

We'll borrow a term from Pong to name 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, choose GameObject | Create Other | Cube.
    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. Rename it Paddle.

    Now, we should make the Paddle more paddle-like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required