2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CCOLLIDABLESPHERE
|
|
|
|
#define _CCOLLIDABLESPHERE
|
2022-09-29 23:55:38 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Collision/CCollisionPrimitive.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/Math/CSphere.hpp"
|
|
|
|
|
|
|
|
class CCollidableSphere : public CCollisionPrimitive {
|
|
|
|
public:
|
|
|
|
CCollidableSphere(const CSphere& sphere, const CMaterialList& material)
|
|
|
|
: CCollisionPrimitive(material), x10_sphere(sphere) {}
|
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
uint GetTableIndex() const override;
|
2022-09-29 23:55:38 +00:00
|
|
|
CAABox CalculateAABox(const CTransform4f&) const override;
|
|
|
|
CAABox CalculateLocalAABox() const override;
|
|
|
|
FourCC GetPrimType() const override;
|
|
|
|
~CCollidableSphere() override {}
|
|
|
|
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
CSphere x10_sphere;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CCollidableSphere, 0x20)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CCOLLIDABLESPHERE
|