diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-11-04 11:24:39 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-11-04 11:24:46 -0500 |
commit | 744b43b52721327bae51e1cf6facbee17d234875 (patch) | |
tree | cb1e29eaa9009f8ec96916ffd363e0c5c67d4530 /core | |
parent | 518ec9ca756f5061492912483e7e0e1661042ecc (diff) |
Fix Quaternion multiplication operator
Diffstat (limited to 'core')
-rw-r--r-- | core/math/quaternion.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/math/quaternion.h b/core/math/quaternion.h index e20ea74eb4..d8d0c06672 100644 --- a/core/math/quaternion.h +++ b/core/math/quaternion.h @@ -86,13 +86,6 @@ public: void operator*=(const Quaternion &p_q); Quaternion operator*(const Quaternion &p_q) const; - Quaternion operator*(const Vector3 &v) const { - return Quaternion(w * v.x + y * v.z - z * v.y, - w * v.y + z * v.x - x * v.z, - w * v.z + x * v.y - y * v.x, - -x * v.x - y * v.y - z * v.z); - } - _FORCE_INLINE_ Vector3 xform(const Vector3 &v) const { #ifdef MATH_CHECKS ERR_FAIL_COND_V_MSG(!is_normalized(), v, "The quaternion must be normalized."); |