O'Reilly logo

Unity 3.x Game Development Essentials by Will Goldstone

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

Summary

In this chapter, we have explored three key methods for detecting interactions between objects in 3D games:

  • Collision detection
  • Ray casting
  • Trigger collision detection

These three techniques have many individual uses, and they are key skills that you should expect to reuse in your future use of Unity.

In the next chapter, we'll make further use of triggers. We will create a collection game in which the player must find power cells in order to power a generator and unlock the outpost door, and write code to disallow entry to the outpost unless the generator is fully powered.

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