adding on collided callback

This commit is contained in:
Bluub
2021-06-01 14:43:48 +02:00
parent ef492f3b57
commit b3dd001532
5 changed files with 62 additions and 24 deletions
@@ -19,4 +19,15 @@ namespace BBM
{
this->_acceleration += force;
}
void MovableComponent::resetVelocity(void)
{
this->_velocity = {0, 0, 0};
}
const Vector3f &MovableComponent::getVelocity(void) const
{
return _velocity;
}
} // namespace WAL