Fixed Basis -> Quat conversions, added a few safety checks.
Fixes #19027.
This commit is contained in:
parent
130fd6bcb8
commit
9d41161596
7 changed files with 40 additions and 21 deletions
|
|
@ -120,11 +120,11 @@ Transform Transform::interpolate_with(const Transform &p_transform, real_t p_c)
|
|||
/* not sure if very "efficient" but good enough? */
|
||||
|
||||
Vector3 src_scale = basis.get_scale();
|
||||
Quat src_rot = basis.orthonormalized();
|
||||
Quat src_rot = basis.get_rotation_quat();
|
||||
Vector3 src_loc = origin;
|
||||
|
||||
Vector3 dst_scale = p_transform.basis.get_scale();
|
||||
Quat dst_rot = p_transform.basis;
|
||||
Quat dst_rot = p_transform.basis.get_rotation_quat();
|
||||
Vector3 dst_loc = p_transform.origin;
|
||||
|
||||
Transform dst; //this could be made faster by using a single function in Basis..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue