From 3ca164d013c219059d901bed436c0b8c51bf1a93 Mon Sep 17 00:00:00 2001 From: disinvite Date: Sat, 14 Feb 2026 15:54:16 -0500 Subject: [PATCH] Beta match SpheresIntersect --- LEGO1/lego/legoomni/src/common/legoutils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/common/legoutils.cpp b/LEGO1/lego/legoomni/src/common/legoutils.cpp index dc310953..7d37af7f 100644 --- a/LEGO1/lego/legoomni/src/common/legoutils.cpp +++ b/LEGO1/lego/legoomni/src/common/legoutils.cpp @@ -90,11 +90,13 @@ void RotateY(LegoROI* p_roi, MxFloat p_angle) } // FUNCTION: LEGO1 0x1003de80 +// FUNCTION: BETA10 0x100d3684 MxBool SpheresIntersect(const BoundingSphere& p_sphere1, const BoundingSphere& p_sphere2) { // This doesn't look clean, but it matches. // p_sphere1.Center().GetData() doesn't work out - return sqrt(DISTSQRD3(&p_sphere1.Center()[0], &p_sphere2.Center()[0])) < p_sphere1.Radius() + p_sphere2.Radius(); + float distance = DISTSQRD3(p_sphere1.Center(), p_sphere2.Center()); + return sqrt(distance) < p_sphere1.Radius() + p_sphere2.Radius(); } // FUNCTION: LEGO1 0x1003ded0