StratiX0 4a77df6102 fix du probleme de spawn d'objets
fix:

+ les objets ne s'envolent plus vers le haut quand un nouvel objet est spawn
2024-04-22 16:14:05 +02:00

22 lines
502 B
C++

#ifndef _PHYSICS_H_
#define _PHYSICS_H_
#include "object.h"
class Physics : public Object
{
public:
Physics();
explicit Physics(const Physics&); // Use explicit to avoid implicit conversion
~Physics();
XMVECTOR GetGravity() const; // Get the gravity value
void SetGravity(XMVECTOR gravity); // Define the gravity value
void ApplyGravity(Object*, float, float); // Apply gravity to an object
void ApplyForce(Object*, XMVECTOR);
private:
XMVECTOR m_gravity;
};
#endif