mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 10:27:40 +00:00
Halfway match CAABox; continue CBallCamera
Former-commit-id: 602109d8f0
This commit is contained in:
27
include/Collision/CCollidableSphere.hpp
Normal file
27
include/Collision/CCollidableSphere.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef _CCOLLIDABLESPHERE_HPP
|
||||
#define _CCOLLIDABLESPHERE_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "Collision/CCollisionPrimitive.hpp"
|
||||
|
||||
#include "Kyoto/Math/CSphere.hpp"
|
||||
|
||||
class CCollidableSphere : public CCollisionPrimitive {
|
||||
public:
|
||||
CCollidableSphere(const CSphere& sphere, const CMaterialList& material)
|
||||
: CCollisionPrimitive(material), x10_sphere(sphere) {}
|
||||
|
||||
u32 GetTableIndex() const override;
|
||||
CAABox CalculateAABox(const CTransform4f&) const override;
|
||||
CAABox CalculateLocalAABox() const override;
|
||||
FourCC GetPrimType() const override;
|
||||
~CCollidableSphere() override {}
|
||||
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const;
|
||||
|
||||
private:
|
||||
CSphere x10_sphere;
|
||||
};
|
||||
CHECK_SIZEOF(CCollidableSphere, 0x20)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user