Ajout collision semi fonctionnelle entre 2 spheres

feat:
+ collision entre 2 spheres, fonctionne a moitie, overlap entre les 2
This commit is contained in:
StratiX0
2024-04-24 12:59:40 +02:00
parent e57de4f1be
commit 291afe9424
4 changed files with 38 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
#define _PHYSICS_H_
#include "object.h"
#include "math.h"
class Physics : public Object
{
@@ -16,6 +17,7 @@ public:
void AddForce(Object*, XMVECTOR);
bool IsColliding(Object*, Object*);
bool CubesOverlap(Object*, Object*);
bool SpheresOverlap(Object*, Object*);
private:
XMVECTOR m_gravity;