2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CCOLLIDABLEAABOX
|
|
|
|
#define _CCOLLIDABLEAABOX
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Collision/CCollisionPrimitive.hpp"
|
|
|
|
|
|
|
|
class CCollidableAABox : public CCollisionPrimitive {
|
|
|
|
public:
|
2022-10-05 16:28:37 +00:00
|
|
|
CCollidableAABox();
|
|
|
|
CCollidableAABox(const CAABox& box, const CMaterialList& matList)
|
|
|
|
: CCollisionPrimitive(matList), x10_aabb(box) {}
|
2022-09-18 05:55:13 +00:00
|
|
|
// TODO
|
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
uint GetTableIndex() const override;
|
2022-09-18 05:55:13 +00:00
|
|
|
CAABox CalculateAABox(const CTransform4f&) const override;
|
|
|
|
CAABox CalculateLocalAABox() const override;
|
|
|
|
FourCC GetPrimType() const override;
|
2022-10-09 05:13:17 +00:00
|
|
|
~CCollidableAABox() override{};
|
2022-11-09 23:45:24 +00:00
|
|
|
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const override;
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
CAABox x10_aabb;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CCollidableAABox, 0x28)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CCOLLIDABLEAABOX
|