diff options
author | Toshiwo <toshiwo.a@gmail.com> | 2019-06-07 11:28:50 -0500 |
---|---|---|
committer | Toshiwo <toshiwo.a@gmail.com> | 2019-06-07 11:28:50 -0500 |
commit | 416a7d06ded6f19a7c44c793bc536e338a48eec8 (patch) | |
tree | bdf7675d2bff3b4dc17aa429290527173cbc16c5 /core/math | |
parent | 197b65f32ac811f79bc5599fbfe8cf83914b6873 (diff) |
Fix Vector3 slerp method normalizing cross product
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/vector3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector3.h b/core/math/vector3.h index 6423147282..811a207138 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -224,7 +224,7 @@ Vector3 Vector3::slerp(const Vector3 &p_b, real_t p_t) const { #endif real_t theta = angle_to(p_b); - return rotated(cross(p_b), theta * p_t); + return rotated(cross(p_b).normalized(), theta * p_t); } real_t Vector3::distance_to(const Vector3 &p_b) const { |