Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OUYA Game Development by Example

You're reading from   OUYA Game Development by Example An all-inclusive, fun guide to making professional 3D games for the OUYA console

Arrow left icon
Product type Paperback
Published in May 2014
Publisher
ISBN-13 9781849697224
Length 268 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
John Donovan John Donovan
Author Profile Icon John Donovan
John Donovan
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

OUYA Game Development by Example Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Experiencing the OUYA FREE CHAPTER 2. Installing Unity and the OUYA ODK 3. Diving into Development 4. Moving Your Player with Controller Input 5. Enhancing Your Game with Touch Dynamics 6. Saving Data to Create Longer Games 7. Expanding Your Gameplay with In-app Purchases 8. Polishing and Prepping Your Game for Deployment 9. Blazing Your Own Development Trail Pop Quiz Answers 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image