diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-24 16:55:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 16:55:34 +0100 |
commit | feb88ebe6fd8468eb17d597b31d3b5b73196e180 (patch) | |
tree | 3fc1e8c3c4ad5e2b353737ae860674acdb13adc0 /core/math/basis.cpp | |
parent | 97cc2e53f6fbba7e85a2cbb79f38e077a6e511f7 (diff) | |
parent | a002b93d860887a219aa40d7a5cc65fc3a5272c1 (diff) | |
download | redot-engine-feb88ebe6fd8468eb17d597b31d3b5b73196e180.tar.gz |
Merge pull request #35510 from Calinou/add-normalized-error-explanations
Add explanations for errors related to Vector/Quat normalization
Diffstat (limited to 'core/math/basis.cpp')
-rw-r--r-- | core/math/basis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp index d15cb71db9..ddf5f13d55 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -800,7 +800,7 @@ void Basis::set_quat(const Quat &p_quat) { void Basis::set_axis_angle(const Vector3 &p_axis, real_t p_phi) { // Rotation matrix from axis and angle, see https://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_angle #ifdef MATH_CHECKS - ERR_FAIL_COND_MSG(!p_axis.is_normalized(), "Axis must be normalized."); + ERR_FAIL_COND_MSG(!p_axis.is_normalized(), "The axis Vector3 must be normalized."); #endif Vector3 axis_sq(p_axis.x * p_axis.x, p_axis.y * p_axis.y, p_axis.z * p_axis.z); real_t cosine = Math::cos(p_phi); |