Feature 5 – WASD control
I have implemented a camera that navigates your the with WASD for forward, left strafe, backward, and right strafe movements. It also automatically adjusts the camera’s vertical dis-
placement based on the terrain elevation.
I stored the height map as a vector of ints where each pixel is represented by a certain value (the given height). Upon a camera movement, it automatically sets the height to that specific value.