feat: ajout de la trainee (drag)

j'espere que c'est bien comme ça que ça marche
This commit is contained in:
StratiX0
2024-04-09 12:30:37 +02:00
parent b37f253c5c
commit ebccd2cf68
8 changed files with 67 additions and 15 deletions

View File

@@ -7,6 +7,8 @@ Object::Object() : ModelClass()
m_translateMatrix = XMMatrixIdentity();
m_srMatrix = XMMatrixIdentity();
m_worldMatrix = XMMatrixIdentity();
m_previousPosition = XMVectorZero();
m_velocity = XMVectorZero();
}
Object::~Object()
@@ -161,4 +163,14 @@ std::string Object::GetName()
void Object::SetName(std::string name)
{
m_name = name;
}
void Object::SetVelocity(XMVECTOR velocity)
{
m_velocity = velocity;
}
XMVECTOR Object::GetVelocity()
{
return m_velocity;
}