2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

More collision imps

This commit is contained in:
2016-04-26 19:41:00 -07:00
parent a8021d4d88
commit 6e0fad8489
6 changed files with 81 additions and 11 deletions

View File

@@ -28,6 +28,18 @@ COBBTree::COBBTree(CInputStream& in)
{
}
zeus::CAABox COBBTree::CalculateLocalAABox() const
{
return CalculateAABox(zeus::CTransform::Identity());
}
zeus::CAABox COBBTree::CalculateAABox(const zeus::CTransform& xf) const
{
if (x88_root)
return x88_root->GetOBB().calculateAABox(xf);
return zeus::CAABox::skInvertedBox;
}
COBBTree::SIndexData::SIndexData(CInputStream& in)
{
u32 count = in.readUint32Big();