In the last post, I set up the window and the camera. Now it’s time to add some movement to the plane.
First, let’s remember an aircraft always move forward (if it’s not falling) and it can change its direction by changing its orientation, what we know as “pitch”, “yaw”, and “roll”.
But for demonstration purposes, I’ll move an object in 3D instead of the camera.
Model Transformation
Let’s start with placing model on our surface. The first vector is its position, the scalar is its scale, and the last one is its color (if not textured).