Ajout collision semi fonctionnelle entre 2 spheres
feat: + collision entre 2 spheres, fonctionne a moitie, overlap entre les 2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user