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

clean some remaining things up

This commit is contained in:
Lars Mueller 2025-04-02 15:40:06 +02:00
parent d1a46a8da5
commit cddd1a54f1
4 changed files with 17 additions and 29 deletions

View file

@ -15,18 +15,6 @@ struct Transform {
quaternion rotation;
vector3df scale{1};
// Tries to decompose the matrix, if there is one.
static Transform decompose(const core::matrix4 &mat)
{
auto scale = mat.getScale();
return {
mat.getTranslation(),
quaternion(mat.getRotationRadians(scale)),
scale,
};
}
Transform interpolate(Transform to, f32 time) const
{
core::quaternion interpolated_rotation;