diff options
| author | tagcup | 2018-05-26 23:14:05 -0400 |
|---|---|---|
| committer | tagcup | 2018-05-27 14:15:47 -0400 |
| commit | 9d41161596167984efdb02639d0857da8979b01b (patch) | |
| tree | c97563d142deed97f9796dc2814781d09cd8d26e /core/math/transform.cpp | |
| parent | 130fd6bcb88d7b297b13c3ed20a715b5ab9cce47 (diff) | |
| download | godot-9d41161596167984efdb02639d0857da8979b01b.tar.gz godot-9d41161596167984efdb02639d0857da8979b01b.tar.zst godot-9d41161596167984efdb02639d0857da8979b01b.zip | |
Diffstat (limited to 'core/math/transform.cpp')
| -rw-r--r-- | core/math/transform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/transform.cpp b/core/math/transform.cpp index 7cd186ca6..d1e190f4b 100644 --- a/core/math/transform.cpp +++ b/core/math/transform.cpp @@ -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.. |
