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 ship?
Collisions: We performed some collision detection in our 2D game. Collision detection in 3D is more complicated because we now have to consider all three spatial dimensions in our checks.