2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CCOLLIDABLEOBBTREEGROUP
|
|
|
|
#define _CCOLLIDABLEOBBTREEGROUP
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Collision/CCollisionPrimitive.hpp"
|
|
|
|
|
|
|
|
#include "rstl/auto_ptr.hpp"
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
|
|
|
|
class COBBTree;
|
|
|
|
|
|
|
|
class CCollidableOBBTreeGroupContainer {
|
2023-10-24 16:24:51 +00:00
|
|
|
public:
|
|
|
|
CCollidableOBBTreeGroupContainer(CInputStream& in);
|
|
|
|
CCollidableOBBTreeGroupContainer(const CVector3f&, const CVector3f&);
|
|
|
|
|
|
|
|
private:
|
2022-09-18 05:55:13 +00:00
|
|
|
friend class CCollidableOBBTreeGroup;
|
|
|
|
rstl::vector< rstl::auto_ptr< COBBTree > > x0_trees;
|
|
|
|
rstl::vector< CAABox > x10_aabbs;
|
|
|
|
CAABox x20_aabox;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CCollidableOBBTreeGroup : public CCollisionPrimitive {
|
|
|
|
public:
|
|
|
|
CCollidableOBBTreeGroup(CCollidableOBBTreeGroupContainer* container,
|
|
|
|
const CMaterialList& matList);
|
|
|
|
|
2023-02-06 17:01:01 +00:00
|
|
|
uint GetTableIndex() const override;
|
|
|
|
CAABox CalculateAABox(const CTransform4f&) const override;
|
|
|
|
CAABox CalculateLocalAABox() const override;
|
|
|
|
FourCC GetPrimType() const override;
|
|
|
|
~CCollidableOBBTreeGroup() override {}
|
|
|
|
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const override;
|
2022-09-18 05:55:13 +00:00
|
|
|
|
2023-10-24 16:24:51 +00:00
|
|
|
static Type GetType();
|
|
|
|
static void SetStaticTableIndex(uint);
|
2022-09-18 05:55:13 +00:00
|
|
|
private:
|
|
|
|
CCollidableOBBTreeGroupContainer* x10_container;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CCOLLIDABLEOBBTREEGROUP
|