Relative Content

Tag Archive for c++openglc++17glfwglm

GLM not getting yaw from quaternion correctly

I’m using C++ 17 GLFW, GLEW, and glm for my game. I have rotations stored with quaternions. I rotate the players rotation by a quaternion, and convert the player’s rotation to a vec3 later to get where they are facing. I try getting the yaw to move the player but the yaw isn’t correct.

GLM not getting yaw from quaternion correctly.(please help)

Im using c++ 17 GLFW,GLEW, and glm for my game. I have rotations stored with quaternions. I rotate the players rotation by a quaternion and convert the players rotation to a vec3 later to get where they are facing. I try getting to yaw to move the player but the yaw isnt correct.