Chapter 10Physics and Scripting

Chapter 9 explored various 3D objects available in Unity. In this chapter, you’ll learn how to turn those objects into elements that can interact with each other. The Unity physics engine—built on top of Nvidia PhysX—governs the interaction of elements. With the Unity game engine, all game objects move and collide realistically. Without realizing it, you used the Unity physics engine in Chapter 9 to create a ragdoll.

In this chapter, you will investigate how to put 3D objects under the control of the physics engine using Rigidbody components. After that, you will learn how to create colliders so rigid bodies can obstruct each other. Then, you’ll use the Physic Material to create bouncy rigid bodies. You’ll also ...

Get Programming for Mixed Reality with Windows 10, Unity, Vuforia and UrhoSharp, First Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.