O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

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

Graphic Raycaster

To kill a zombie, our player will need the ability to shoot. We will cover this in detail in the next chapter, but it is important to note that we will not be firing a projectile from the Player GameObject. Instead, we will use a Physics Raycaster to direct a beam from the center of the user's point-of-view to a focus point in the distance. Think of the Raycaster as an invisible laser pointer that kills the first zombie it collides with.

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