We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently in TransformComponent the final rotation matrix is calculated by multiplying rotation matrices with respect to each axis as seen here.
This is inefficient and also has improper rotation effect as rotation in Z axis us applied after Y axis which is after X axis.
An alternative is to convert the Euler angles to quaternion and to get the Mat4 from that.
P.S. this might not solve the axis precedence issue.
#define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/quaternion.hpp> glm::mat4 rotationMatrix = glm::toMat4(glm::quat(rotation));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently in TransformComponent the final rotation matrix is calculated by multiplying rotation matrices with respect to each axis as seen here.
This is inefficient and also has improper rotation effect as rotation in Z axis us applied after Y axis which is after X axis.
An alternative is to convert the Euler angles to quaternion and to get the Mat4 from that.
P.S. this might not solve the axis precedence issue.
The text was updated successfully, but these errors were encountered: