metaforce/Runtime/Collision/CCollisionSurface.hpp

23 lines
585 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-06-24 20:09:38 +00:00
#include "zeus/zeus.hpp"
#include "RetroTypes.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
class CCollisionSurface {
zeus::CVector3f x0_a;
zeus::CVector3f xc_b;
zeus::CVector3f x18_c;
u32 x24_flags;
2016-06-24 20:09:38 +00:00
public:
2018-12-08 05:30:43 +00:00
CCollisionSurface(const zeus::CVector3f&, const zeus::CVector3f&, const zeus::CVector3f&, u32);
2016-06-24 20:09:38 +00:00
2018-12-08 05:30:43 +00:00
zeus::CVector3f GetNormal() const;
const zeus::CVector3f& GetVert(s32 idx) const { return (&x0_a)[idx]; }
const zeus::CVector3f* GetVerts() const { return &x0_a; }
zeus::CPlane GetPlane() const;
u32 GetSurfaceFlags() const { return x24_flags; }
2016-06-24 20:09:38 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde