fix du spawn d'un objet

fix:
+ les objets ne spawn plus a une distance elevees
This commit is contained in:
StratiX0
2024-04-22 14:50:14 +02:00
parent 23da293d54
commit d51619f437
4 changed files with 11 additions and 8 deletions

View File

@@ -1,8 +1,9 @@
#include "physics.h"
Physics::Physics() : m_gravity(XMVectorSet(0.0f, -9.81f, 0.0f, 0.0f)) // Initialize the gravity vector
Physics::Physics()
{
m_gravity = XMVectorSet(0.0f, -9.81f, 0.0f, 0.0f); // Initialize the gravity vector
}
Physics::Physics(const Physics& other)