ABSTRACT

A Raycast can be thought of as a virtual line, which projects from a set origin point, and returns information about the different surfaces that it encounters. It has thousands of uses in game design, but in this chapter, we’ll see how it can be used to change the sound of the avatar’s footsteps when they walk on different surfaces.