Want to watch this Lesson?

Check out the about tab below and start learning on CG Cookie today.

Get Started

Using Raycasts and Bullet Hole Textures

crew
  • Software:Unity 5.0  ·
  • Difficulty:Intermediate

In this lesson we'll start to dive into how a basic weapon works with raycasting. Raycasting will detect objects based on it's range and surrounding objects. We'll enable the raycast when we fire our weapon which will also instantiate a bullet hole texture prefab on impact.