2016-06-24 20:09:38 +00:00
|
|
|
#include "CCollidableSphere.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
const CCollisionPrimitive::Type CCollidableSphere::sType(CCollidableSphere::SetStaticTableIndex, "CCollidableSphere");
|
|
|
|
u32 CCollidableSphere::sTableIndex = -1;
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
namespace Collide
|
2016-06-24 20:09:38 +00:00
|
|
|
{
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
bool Sphere_AABox(const CInternalCollisionStructure&, CCollisionInfoList&) { return false; }
|
2016-06-24 20:09:38 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
bool Sphere_AABox_Bool(const CInternalCollisionStructure&) { return false; }
|
2016-06-24 20:09:38 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
bool Sphere_Sphere(const CInternalCollisionStructure&, CCollisionInfoList&) { return false; }
|
2016-06-24 20:09:38 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
bool Sphere_Sphere_Bool(const CInternalCollisionStructure&) { return false; }
|
2016-06-24 20:09:38 +00:00
|
|
|
}
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
CCollidableSphere::CCollidableSphere(const zeus::CSphere& sphere, const CMaterialList& list)
|
|
|
|
: CCollisionPrimitive(list), x10_sphere(sphere)
|
2016-06-24 21:30:25 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
const zeus::CSphere& CCollidableSphere::GetSphere() const { return x10_sphere; }
|
2016-06-24 21:30:25 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
void CCollidableSphere::SetSphereCenter(const zeus::CVector3f&)
|
2017-01-04 04:08:30 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
u32 CCollidableSphere::GetTableIndex() const { return sTableIndex; }
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
zeus::CAABox CCollidableSphere::CalculateAABox(const zeus::CTransform&) const { return {}; }
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
zeus::CAABox CCollidableSphere::CalculateLocalAABox() const { return {}; }
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
FourCC CCollidableSphere::GetPrimType() const { return SBIG('SPHR'); }
|
|
|
|
|
|
|
|
CRayCastResult CCollidableSphere::CastRayInternal(const CInternalRayCastStructure&) const { return {}; }
|
|
|
|
|
|
|
|
const CCollisionPrimitive::Type& CCollidableSphere::GetType() { return sType; }
|
|
|
|
|
|
|
|
void CCollidableSphere::SetStaticTableIndex(u32 index) { sTableIndex = index; }
|
|
|
|
|
|
|
|
bool CCollidableSphere::CollideMovingAABox(const CInternalCollisionStructure&, const zeus::CVector3f&, double&,
|
|
|
|
CCollisionInfo&)
|
2017-01-04 04:08:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-03-01 03:42:06 +00:00
|
|
|
bool CCollidableSphere::CollideMovingSphere(const CInternalCollisionStructure&, const zeus::CVector3f&, double&,
|
|
|
|
CCollisionInfo&)
|
2017-01-04 04:08:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2016-06-24 20:09:38 +00:00
|
|
|
}
|