mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-01 18:13:57 +00:00
Beta match SpheresIntersect (#1745)
* Beta match SpheresIntersect * Extra beta addresses
This commit is contained in:
parent
8a77540169
commit
2740065895
@ -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
|
||||
|
||||
@ -186,6 +186,7 @@ void LegoCameraController::TransformPointOfView(const Matrix4& p_transform, MxU3
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10012740
|
||||
// FUNCTION: BETA10 0x10069c35
|
||||
Mx3DPointFloat LegoCameraController::GetWorldUp()
|
||||
{
|
||||
if (m_lego3DView && m_lego3DView->GetPointOfView()) {
|
||||
@ -199,6 +200,7 @@ Mx3DPointFloat LegoCameraController::GetWorldUp()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100127f0
|
||||
// FUNCTION: BETA10 0x10069cea
|
||||
Mx3DPointFloat LegoCameraController::GetWorldLocation()
|
||||
{
|
||||
if (m_lego3DView && m_lego3DView->GetPointOfView()) {
|
||||
@ -212,6 +214,7 @@ Mx3DPointFloat LegoCameraController::GetWorldLocation()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100128a0
|
||||
// FUNCTION: BETA10 0x10069daa
|
||||
Mx3DPointFloat LegoCameraController::GetWorldDirection()
|
||||
{
|
||||
if (m_lego3DView && m_lego3DView->GetPointOfView()) {
|
||||
|
||||
@ -52,6 +52,7 @@ inline ViewManager* Lego3DView::GetViewManager()
|
||||
return m_pViewManager;
|
||||
}
|
||||
|
||||
// FUNCTION: BETA10 0x1006aae0
|
||||
inline ViewROI* Lego3DView::GetPointOfView()
|
||||
{
|
||||
return m_pPointOfView;
|
||||
|
||||
@ -873,6 +873,12 @@
|
||||
// LIBRARY: BETA10 0x100fa0e0
|
||||
// atof
|
||||
|
||||
// LIBRARY: BETA10 0x1005a500
|
||||
// sqrt
|
||||
|
||||
// LIBRARY: BETA10 0x1005a530
|
||||
// sqrtf
|
||||
|
||||
// LIBRARY: BETA10 0x1005a9c0
|
||||
// fabs
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user