2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 01:47:43 +00:00

Merge pull request #107 from lioncash/ball

CBallCamera: Use bool instead of float for holding boolean value
This commit is contained in:
2019-10-12 07:26:54 -07:00
committed by GitHub

View File

@@ -1750,7 +1750,8 @@ bool CBallCamera::DetectCollision(const zeus::CVector3f& from, const zeus::CVect
zeus::CVector3f delta = to - from;
float deltaMag = delta.magnitude();
zeus::CVector3f deltaNorm = delta * (1.f / deltaMag);
float clear = true;
bool clear = true;
if (deltaMag > 0.000001f) {
float margin = 2.f * radius;
zeus::CAABox aabb;