2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 10:59:13 +00:00

Reformat pass

This commit is contained in:
2021-06-07 12:29:18 -07:00
parent d7559823ea
commit a9bcb7a9ce
424 changed files with 4377 additions and 4790 deletions

View File

@@ -189,7 +189,8 @@ bool CCollidableOBBTree::SphereCollideWithLeafMoving(const COBBTree::CLeafData&
zeus::CVector3f vtsRej = vertToSphere - vtsDotEdge * edgeVec;
if (edgeRejMagSq > 0.f) {
const float tmp = 2.f * vtsRej.dot(edgeRej);
const float tmp2 = 4.f * edgeRejMagSq * (vtsRej.magSquared() - sphere.radius * sphere.radius) - tmp * tmp;
const float tmp2 =
4.f * edgeRejMagSq * (vtsRej.magSquared() - sphere.radius * sphere.radius) - tmp * tmp;
if (tmp2 >= 0.f) {
const float mag2 = 0.5f / edgeRejMagSq * (-tmp - std::sqrt(tmp2));
if (mag2 >= 0.f) {