Chapter 10. Expanding Space

Now that you know how to build your 3D world, it is time to do stuff! As we are building a space racing game, we need to be able to move our space ship around. We will also put some obstacles in the game so that we have something to race against. In this chapter, you will learn about the following topics:

  • Placing game objects: We will take some 3D objects, load them into our game, and place them in 3D space.
  • Transformations: We need to learn how to move in 3D. Moving in 2D was easy. In 3D, we have another dimension, and we will now also want to account for rotation as we move around.
  • Point of view: We will learn how the point of view affects how we play the game. Do you want to be in the pilot's seat or just outside the ...

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.