Merging with bonuses

This commit is contained in:
Zoe Roux
2021-06-10 11:36:16 +02:00
9 changed files with 132 additions and 35 deletions

View File

@@ -20,6 +20,6 @@ namespace BBM
auto &movable = entity.get<MovableComponent>();
Vector2f move = controllable.move.normalized() * controllable.speed;
movable.addForce(Vector3f(move.x, controllable.jump, move.y));
movable.addForce(Vector3f(move.x, 0, move.y));
}
}