1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use getRotationRadians

This commit is contained in:
Lars Mueller 2025-03-19 14:58:32 +01:00
parent 1a8912716f
commit d1a46a8da5

View file

@ -21,7 +21,7 @@ struct Transform {
auto scale = mat.getScale();
return {
mat.getTranslation(),
quaternion(mat.getRotationDegrees(scale) * DEGTORAD),
quaternion(mat.getRotationRadians(scale)),
scale,
};
}