Summary
This chapter first introduced the concept of the coordinate system in computer graphics, and then discussed the coordinate system used by Unity. Then, we discussed the concept of vectors and how to perform vector operations such as vector addition, vector subtraction, dot product, and cross product in Unity.
We also introduced the concept of a matrix and demonstrated how to use a matrix to translate, rotate, and scale in Unity.
Finally, we explored how to create rotations and manipulate rotations in quaternions, and demonstrated how to use Euler angles in the script correctly.
By reading this chapter, you should now have a bit more mathematical knowledge about computer graphics. In the next chapter, we will introduce the Scriptable Render Pipeline in Unity.