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.

Get Virtual Reality Blueprints now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.