Ajout de la collision entre 2 cubes
feat: + collision entre 2 cubes refactor: + changements dans quelques fonctions + renommage de certaines fonctions
This commit is contained in:
@@ -173,6 +173,11 @@ void Object::SetVelocity(XMVECTOR velocity)
|
||||
m_velocity = velocity;
|
||||
}
|
||||
|
||||
void Object::AddVelocity(float frameTime)
|
||||
{
|
||||
m_velocity += m_acceleration * frameTime;
|
||||
}
|
||||
|
||||
XMVECTOR Object::GetVelocity() const
|
||||
{
|
||||
return m_velocity;
|
||||
|
||||
Reference in New Issue
Block a user