Start CollisionUtil

Former-commit-id: 6f8b62feca
This commit is contained in:
2022-12-31 14:07:51 -08:00
parent 05f5fba3db
commit 3bf5eba181
10 changed files with 97 additions and 28 deletions

View File

@@ -8,12 +8,14 @@
class CSphere {
public:
CSphere(const CVector3f& pos, float radius) : x0_pos(pos), xc_radius(radius) {}
CSphere(const CVector3f& pos, float radius) : x0_center(pos), xc_radius(radius) {}
CVector3f GetCenter() const { return x0_center; }
float GetRadius() const { return xc_radius; }
CUnitVector3f GetSurfaceNormal(const CVector3f& v) const;
private:
CVector3f x0_pos;
CVector3f x0_center;
float xc_radius;
};
CHECK_SIZEOF(CSphere, 0x10)