Summary

We covered a lot of code in this chapter. You implemented a simple, yet effective framework to create and manage 3D objects in the game. This class included necessary features to load the model, position the model in 3D space, and check for collisions.

We also implemented input and collision detection in the game to create a modified slalom race, requiring you to navigate through each asteroid.

In the next chapter, we will implement a user interface and scoring system to make this a more complete game.

Get OpenGL Game Development By Example 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.