feat: gravite dans toutes les directions

This commit is contained in:
StratiX0
2024-04-09 12:52:32 +02:00
parent ebccd2cf68
commit 56ed2d1d5f
3 changed files with 9 additions and 11 deletions

View File

@@ -10,14 +10,13 @@ public:
explicit Physics(const Physics&); // Use explicit to avoid implicit conversion
~Physics();
float GetGravity(); // Get the gravity value
void SetGravity(float gravity); // Define the gravity value
XMVECTOR GetGravity(); // Get the gravity value
void SetGravity(XMVECTOR gravity); // Define the gravity value
void ApplyGravity(Object*, float); // Apply gravity to an object
void ApplyDrag(Object*, float, float);
private:
float m_gravity;
XMVECTOR m_gravity;
};
#endif