diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-11 13:55:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 13:55:44 +0200 |
commit | c499f1475f1c37c6d83985320a9e98a3d2711a2b (patch) | |
tree | 8ceaa6bc1d5deb40b7c5fc998041ecd63ad122d9 /thirdparty/bullet/Bullet3Common/b3Quaternion.h | |
parent | f0bacf360dbb6ce3781356438b2fa7067250d27c (diff) | |
parent | 99acec63f175fecd7172c927263ed3787cb082d6 (diff) |
Merge pull request #29418 from AndreaCatania/upbul
Updated Bullet version to the actual bullet master commit
Diffstat (limited to 'thirdparty/bullet/Bullet3Common/b3Quaternion.h')
-rw-r--r-- | thirdparty/bullet/Bullet3Common/b3Quaternion.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/thirdparty/bullet/Bullet3Common/b3Quaternion.h b/thirdparty/bullet/Bullet3Common/b3Quaternion.h index 9bd5ff7d90..4fdd72dcc4 100644 --- a/thirdparty/bullet/Bullet3Common/b3Quaternion.h +++ b/thirdparty/bullet/Bullet3Common/b3Quaternion.h @@ -92,8 +92,11 @@ public: /**@brief Set the rotation using axis angle notation * @param axis The axis around which to rotate * @param angle The magnitude of the rotation in Radians */ - void setRotation(const b3Vector3& axis, const b3Scalar& _angle) + void setRotation(const b3Vector3& axis1, const b3Scalar& _angle) { + b3Vector3 axis = axis1; + axis.safeNormalize(); + b3Scalar d = axis.length(); b3Assert(d != b3Scalar(0.0)); if (d < B3_EPSILON) |