2016-04-27 00:26:02 +00:00
|
|
|
#include "CCollidableOBBTree.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CCollidableOBBTree::CCollidableOBBTree(const COBBTree* tree, const urde::CMaterialList& material)
|
|
|
|
: CCollisionPrimitive(material),
|
|
|
|
x10_tree((COBBTree*)tree)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
FourCC CCollidableOBBTree::GetPrimType() const
|
|
|
|
{
|
|
|
|
return SBIG('OBBT');
|
|
|
|
}
|
|
|
|
|
|
|
|
CRayCastResult CCollidableOBBTree::CastRayInternal(const CInternalRayCastStructure&) const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return {};
|
2016-04-27 00:26:02 +00:00
|
|
|
}
|
|
|
|
|
2016-04-27 19:59:38 +00:00
|
|
|
zeus::CAABox CCollidableOBBTree::CalculateAABox(const zeus::CTransform& xf) const
|
2016-04-27 00:26:02 +00:00
|
|
|
{
|
2016-04-27 19:59:38 +00:00
|
|
|
return x10_tree->CalculateAABox(xf);
|
2016-04-27 00:26:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
zeus::CAABox CCollidableOBBTree::CalculateLocalAABox() const
|
|
|
|
{
|
2016-04-27 19:59:38 +00:00
|
|
|
return x10_tree->CalculateLocalAABox();
|
2016-04-27 00:26:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|