mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 08:17:01 +00:00
Initial CCollidableSphere match work
This commit is contained in:
@@ -11,7 +11,7 @@ class CCollidableSphere : public CCollisionPrimitive {
|
||||
public:
|
||||
CCollidableSphere(const CSphere& sphere, const CMaterialList& material)
|
||||
: CCollisionPrimitive(material), x10_sphere(sphere) {}
|
||||
|
||||
|
||||
static bool CollideMovingAABox(const CInternalCollisionStructure& collision, const CVector3f& dir,
|
||||
double& dOut, CCollisionInfo& infoOut);
|
||||
static bool CollideMovingSphere(const CInternalCollisionStructure& collision,
|
||||
@@ -21,12 +21,17 @@ public:
|
||||
CAABox CalculateAABox(const CTransform4f&) const override;
|
||||
CAABox CalculateLocalAABox() const override;
|
||||
FourCC GetPrimType() const override;
|
||||
CSphere Transform(const CTransform4f& xf) const;
|
||||
~CCollidableSphere() override {}
|
||||
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const;
|
||||
CRayCastResult CastRayInternal(const CInternalRayCastStructure& internalRayCast) const override;
|
||||
|
||||
|
||||
static void SetStaticTableIndex(uint idx);
|
||||
static Type GetType();
|
||||
static bool Sphere_AABox_Bool(const CSphere& sphere, const CAABox& aabox);
|
||||
|
||||
private:
|
||||
static uint sTableIndex;
|
||||
CSphere x10_sphere;
|
||||
};
|
||||
CHECK_SIZEOF(CCollidableSphere, 0x20)
|
||||
|
||||
Reference in New Issue
Block a user