How do I move the camera sideways in Libgdx?
- by Bubblewrap
I want to move the camera sideways (strafe). I had the following in mind, but it doesn't look like there are standard methods to achieve this in Libgdx.
If I want to move the camera sideways by x, I think I need to do the following:
Create a Matrix4 mat
Determine the orthogonal vector v between camera.direction and camera.up
Translate mat by v*x…