mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 13:07:42 +00:00
zeus constexpr refactor and thermal visor fixes
This commit is contained in:
@@ -161,7 +161,7 @@ bool Sphere_Sphere(const CInternalCollisionStructure& collision, CCollisionInfoL
|
||||
float deltaMagSq = delta.magSquared();
|
||||
if (deltaMagSq <= radiusSum * radiusSum) {
|
||||
zeus::CVector3f deltaNorm =
|
||||
delta.canBeNormalized() ? (1.f / std::sqrt(deltaMagSq)) * delta : zeus::CVector3f::skRight;
|
||||
delta.canBeNormalized() ? (1.f / std::sqrt(deltaMagSq)) * delta : zeus::skRight;
|
||||
zeus::CVector3f collisionPoint = deltaNorm * s1.radius + s1.position;
|
||||
CCollisionInfo info(collisionPoint, p0.GetMaterial(), p1.GetMaterial(), deltaNorm);
|
||||
list.Add(info, false);
|
||||
|
||||
Reference in New Issue
Block a user