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 - move the ball into the "sky"

We want the ball to start somewhere in the "sky" (the area above the "ground" plane) so that it will have somewhere to fall from. Just as we did with the Character controller in the Island Demo in Chapter 1, That's One Fancy Hammer, let's use the Inspector panel to move the ball up along the Y-axis into the sky.

  1. Make sure that the Ball GameObject is selected. Click on it in the Hierarchy panel.
  2. You can either click-and-drag the green Y-axis to move the ball up, or type a new Y position for it. As we want to stay on the same page together, let's type it. Look in the Inspector panel and find the Y field it's next to Position in the Transform component of the Ball.
  3. Change the Y position from 0 to 2 ...

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