Add CMetroidAreaCollider

Former-commit-id: 71ff684be4
This commit is contained in:
2022-10-20 20:26:38 -04:00
parent 8395bf8e95
commit 2a8516d4cc
14 changed files with 214 additions and 151 deletions

View File

@@ -3,16 +3,18 @@
#include "types.h"
#include "Kyoto/Math/CVector3f.hpp"
#include "Kyoto/Math/CPlane.hpp"
#include "Kyoto/Math/CVector3f.hpp"
class CCollisionSurface {
public:
CCollisionSurface(const CVector3f&, const CVector3f&, const CVector3f&, uint flags);
CUnitVector3f GetNormal() const;
CPlane GetPlane() const;
uint GetSurfaceFlags() const { return x24_flags; }
const CVector3f& GetVert(int i) const { return (&x0_a)[i]; }
// GetPoint__17CCollisionSurfaceCFi ??
private:
CVector3f x0_a;
@@ -20,6 +22,6 @@ private:
CVector3f x18_c;
uint x24_flags;
};
//CHECK_SIZEOF(CCollisionSurface, 0x28)
CHECK_SIZEOF(CCollisionSurface, 0x28)
#endif // _CCOLLISIONSURFACE