Answer the question
In order to leave comments, you need to log in
Roll rotation of OpenGL camera?
I'm trying to rotate the camera around the Z axis, that is, Roll rotation.
float rad = org.joml.Math.toRadians(angle);
upVector.x = 0;
upVector.y = 1;
upVector.z = 0;
upVector.x = (float)Math.cos(rad);
upVector.y = (float)Math.sin(rad);
camera = camera.lookAt(camPos, front, upVector);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question