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 - revisit the Unity Language Reference

  1. Type rotation into your Script. It lights up. It's one of the magic keywords!
  2. Click and drag to highlight the keyword with your mouse.
  3. Press F1 on your keyboard to warp to the Language Reference, or click on the Search Docs button in Unitron (or press Cmd +') if you're on a Mac. You could also type rotation into the Search field of the Script reference if you already have it open.

A quick look at the resulting list turns up Transform.rotation. We've already been using Transform.position to move our Paddle around it's not such a stretch to figure out that this is what we need. Click on the link!

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