feat: Collision cube sphere

feat:
+ Ajout des collisions entre une sphere et un cube

bug:
+ Les collisions impliquant les spheres sont imparfaites, il y aura un fort clipping
This commit is contained in:
StratiX0
2024-04-25 10:03:30 +02:00
parent 291afe9424
commit 73e4a63de0
4 changed files with 55 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ public:
bool IsColliding(Object*, Object*);
bool CubesOverlap(Object*, Object*);
bool SpheresOverlap(Object*, Object*);
bool SphereCubeOverlap(Object*, Object*);
private:
XMVECTOR m_gravity;