Chapter 4. Cube Chaser – Finding Your Way
We are nearing completion of the Cube Chaser game, with just a few more features to complete to make it playable. Our goal now is to implement the cube that the player is chasing.
In this chapter, we will:
Randomly place the goal cube within the maze
Draw the cube, making it rotate slowly in place while the player searches for it
Detect player-to-cube collisions to determine when the player has scored points
In addition to completing the Cube Chaser game, we will take a more in-depth look at the matrices we use to manipulate objects in 3D.