O'Reilly logo

Unity Game Development in 24 Hours, Sams Teach Yourself® by Mike Geig

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

Hour 10. Collision

What You’ll Learn in This Hour:

• The basics of rigidbodies

• How to use colliders

• How to script with triggers

• How to raycast

This hour you are going to learn to work with the most prevalent physics concept in video games: collision. Collision, simply put, is knowing when the border of one object has come in contact with another object. You will begin by learning what rigidbodies are and what they can do for you. After that, you will experiment with Unity’s powerful built in physics engine by colliding objects together. From there, you will learn the more subtle uses of collision with triggers. You will end the hour by learning to raycast.

Rigidbodies

In order for objects to take advantage of Unity’s built in physics ...

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