Rotate and translate object in local and global orientation using glm
问题 i am trying to implement functions, where i can rotate/ translate an object in local or global orientation, like in 3D modeling software, using glm. Something like this: void Rotate(float x, float y, float z, bool localOrientation); but I dont know how to get it working. Local rotation rotation should just be something like this(?): m_Orientation *= glm::rotate(x, glm::vec3(1,0,0); m_Orientation *= glm::rotate(y, glm::vec3(0,1,0); m_Orientation *= glm::rotate(z, glm::vec3(0,0,1); // (m