mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-28 15:07:38 +00:00
Beta match SpheresIntersect
This commit is contained in:
parent
8a77540169
commit
3ca164d013
@ -90,11 +90,13 @@ void RotateY(LegoROI* p_roi, MxFloat p_angle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003de80
|
// FUNCTION: LEGO1 0x1003de80
|
||||||
|
// FUNCTION: BETA10 0x100d3684
|
||||||
MxBool SpheresIntersect(const BoundingSphere& p_sphere1, const BoundingSphere& p_sphere2)
|
MxBool SpheresIntersect(const BoundingSphere& p_sphere1, const BoundingSphere& p_sphere2)
|
||||||
{
|
{
|
||||||
// This doesn't look clean, but it matches.
|
// This doesn't look clean, but it matches.
|
||||||
// p_sphere1.Center().GetData() doesn't work out
|
// 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
|
// FUNCTION: LEGO1 0x1003ded0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user