mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
adding on collided callback
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user