O'Reilly logo

Creating Games with Unity and Maya by Adam Watkins

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

CHAPTER 14

Image

Unity Raycasting

Collision detection as shown in the last chapter is an easily accessible way of driving interactions in Unity. It’s easy to think of triggers as triggering specific events or commands, and setting these things up is simple. However, there are some clear potential drawbacks, the biggest of which is something called frame miss.

Frame Miss

Unity looks for events on frames. If a game is running at 30 frames a second, Unity is checking for and potentially firing commands 30 times each second. Frame miss is a term that refers to actions (like a collision detection) happening between frames. If it happens between frames, ...

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