Chapter 14: Math and Trace Nodes
The representation of a 3D world is based on mathematical concepts. If you do not understand these concepts, then it will be more difficult to understand certain operations performed in a 3D game. This chapter explains some math concepts that are needed for 3D games. We will learn about the difference between world and relative transforms and how to use them when working with components. We will learn how to use vectors to represent the position, direction, velocity, and distance. The concept of traces is explained and various types of traces are presented. This chapter also shows how to use traces to test collisions in a game.
These are the topics covered in this chapter:
- World and relative transforms
- Points and vectors
- Introduction to traces and trace functions
By the end of the chapter, you will know how to use vectors and traces to make the player interact with other actors in the level.