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:
StratiX0
2024-04-22 17:26:27 +02:00
parent 4a77df6102
commit fadca179e8
6 changed files with 82 additions and 17 deletions

View File

@@ -33,6 +33,8 @@ public:
XMVECTOR GetAcceleration() const;
void SetMass(float);
float GetMass() const;
void SetGrounded(bool);
bool GetGrounded() const;
void UpdateWorldMatrix();
void UpdateSRMatrix();
@@ -59,6 +61,7 @@ private:
XMVECTOR m_acceleration;
float m_mass;
bool m_isGrounded;
std::string m_name;
};