mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-05-17 15:11:21 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
28 lines
749 B
C++
28 lines
749 B
C++
#ifndef _CCOLLIDABLESPHERE
|
|
#define _CCOLLIDABLESPHERE
|
|
|
|
#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) {}
|
|
|
|
uint GetTableIndex() const override;
|
|
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)
|
|
|
|
#endif // _CCOLLIDABLESPHERE
|