prime/include/WorldFormat/CCollisionSurface.hpp

28 lines
640 B
C++
Raw Normal View History

#ifndef _CCOLLISIONSURFACE
#define _CCOLLISIONSURFACE
#include "types.h"
2022-10-09 23:05:06 +00:00
#include "Kyoto/Math/CPlane.hpp"
2022-10-21 00:26:38 +00:00
#include "Kyoto/Math/CVector3f.hpp"
class CCollisionSurface {
public:
2022-10-09 23:05:06 +00:00
CCollisionSurface(const CVector3f&, const CVector3f&, const CVector3f&, uint flags);
CUnitVector3f GetNormal() const;
CPlane GetPlane() const;
2022-10-21 00:26:38 +00:00
uint GetSurfaceFlags() const { return x24_flags; }
const CVector3f& GetVert(int i) const { return (&x0_a)[i]; }
// GetPoint__17CCollisionSurfaceCFi ??
private:
2022-10-09 23:05:06 +00:00
CVector3f x0_a;
CVector3f xc_b;
CVector3f x18_c;
uint x24_flags;
};
2022-10-21 00:26:38 +00:00
CHECK_SIZEOF(CCollisionSurface, 0x28)
#endif // _CCOLLISIONSURFACE