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.
Graphic Raycaster
Get Virtual Reality Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.