Hello, I’m trying to apply a rotation of 90 deg on the x axis to a model using glm::quat
.
Unfortunately, ofxAssimpModelLoader does not accept glm::quat as argument, the only way to set a rotation is to call model.setRotation(0, angle, axis.x, axis.y, axis.z)
.
This is what I’m doing:
glm::quat test = glm::angleAxis(90.0f, glm::vec3(1.0f, 0.0f, 0.0f));
float angle = glm::angle(test);
glm::vec3 axis = glm::axis(test);
model.setRotation(0, angle, axis.x, axis.y, axis.z);
Do you see something wrong?