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:
parent
d1a46a8da5
commit
cddd1a54f1
4 changed files with 17 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue