Ajout collision avec le terrain, mais tres bancale
feat: + les cubes ajoutes s'arretent lorsqu'il y a collision avec le terrain, seulement sur un seul chunk
This commit is contained in:
@@ -14,6 +14,7 @@ public:
|
||||
void SetGravity(XMVECTOR gravity); // Define the gravity value
|
||||
void ApplyGravity(Object*, float, float); // Apply gravity to an object
|
||||
void ApplyForce(Object*, XMVECTOR);
|
||||
bool IsColliding(Object*, Object*);
|
||||
|
||||
private:
|
||||
XMVECTOR m_gravity;
|
||||
|
||||
Reference in New Issue
Block a user