metaforce/Runtime/Collision/CCollidableOBBTree.hpp

30 lines
858 B
C++
Raw Normal View History

#ifndef __URDE_CCOLLIDABLEOBBTREE_HPP__
#define __URDE_CCOLLIDABLEOBBTREE_HPP__
2016-04-27 00:26:02 +00:00
#include "Collision/CCollisionPrimitive.hpp"
#include "COBBTree.hpp"
namespace urde
{
2016-04-27 00:26:02 +00:00
class CCollidableOBBTree : public CCollisionPrimitive
{
2016-04-27 00:26:02 +00:00
COBBTree* x10_tree = nullptr;
u32 x14_ = 0;
u32 x18_ = 0;
u32 x1c_ = 0;
public:
CCollidableOBBTree(const COBBTree* tree, const CMaterialList& material);
virtual ~CCollidableOBBTree() {}
void ResetTestStats() const;
void ResetTestStatsRecurse(const COBBTree::CNode&) const;
u32 GetTableIndex() const { return -1; }
zeus::CAABox CalculateAABox(const zeus::CTransform &) const;
zeus::CAABox CalculateLocalAABox() const;
virtual FourCC GetPrimType() const;
virtual CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const;
};
}
#endif // __URDE_CCOLLIDABLEOBBTREE_HPP__