Book Image

OUYA Game Development by Example

By : John Donovan
Book Image

OUYA Game Development by Example

By: John Donovan

Overview of this book

The OUYA console and development kit gives you the power to publish video games for the players, creating a console marketplace of the gamers, for the gamers, and by the gamers. Using the OUYA developer kit and the Unity3D game engine, even beginners with a captivating game idea can bring it to life with a hint of imagination. OUYA Game Development by Example uses a series of feature-based, step-by-step tutorials that teach beginners how to integrate essential elements into a game engine and then combine them to form a polished gaming experience.
Table of Contents (18 chapters)
OUYA Game Development by Example Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – applying an ice Physics Material


In this tutorial, we'll quickly set up a scene with a tilted platform that we'll attach an ice Physics Material to and see how it affects an object on top of it:

  1. Create a new scene in Unity named physicsMaterialDemo.

  2. Create a cube, position it at 0, 0, 0, and set its X and Z scale values to 5.

  3. Add a directional light to your scene with the default orientation.

  4. Create and apply a transparent blue specular material to give it an "icy" look.

    Your initial scene setup should look something like the following screenshot:

  5. Change the X rotation of the platform to -20 so that it's tilted towards the camera.

  6. Create a primitive cube and place it at the upper-most corner of the tilted platform.

  7. Press Play to test the scene and watch the cube fall into place on the platform.

    Note that the cube doesn't slide because we haven't applied a Physics Material yet; it simply stays put.

    Next, we'll set up the ice material so that we can see how it affects the cube.

  8. Open...