Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Unity Game Development Essentials

You're reading from  Unity Game Development Essentials

Product type Book
Published in Oct 2009
Publisher Packt
ISBN-13 9781847198181
Pages 316 pages
Edition 1st Edition
Languages
Author (1):
Will Goldstone Will Goldstone
Profile icon Will Goldstone

Introducing rigid bodies


Physics engines give games a means of simulating realism in physical terms, and they are a feature in almost all game engines either natively or as a plugin. Unity utilizes the Nvidia PhysX physics engine, a precise modern physics engine that is used in many commercial games in the industry. Having a physics engine means that not only physical reactions, such as weight and gravity are possible, but realistic responses to friction, torque, and mass-based impact, are also possible.

Forces

The influence of the physics engine on objects is known as force, and forces can be applied in a variety of ways through components or scripting. In order to apply physics forces, an object must be what is known as a rigid body object.

The Rigidbody component

In order to invoke the physics engine in Unity, you must give an object a rigidbody component. This simply tells the engine to apply the physics engine to a particular object you need not apply it to an entire scene. It simply works...

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 €14.99/month. Cancel anytime}