feat: object id et objects collisions
feat: + Ajout d'un id pour chaque objet cree + Ajout de collision entre les objets
This commit is contained in:
@@ -12,6 +12,7 @@ Object::Object() : ModelClass()
|
||||
m_acceleration = XMVectorZero();
|
||||
m_mass = NULL;
|
||||
m_isGrounded = false;
|
||||
m_id = NULL;
|
||||
}
|
||||
|
||||
Object::~Object()
|
||||
@@ -213,3 +214,13 @@ bool Object::GetGrounded() const
|
||||
return m_isGrounded;
|
||||
}
|
||||
|
||||
int Object::SetId(int id)
|
||||
{
|
||||
return m_id = id;
|
||||
}
|
||||
|
||||
int Object::GetId() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user