- glm::vec3 vel;
- if (right && !left) {
- vel.x = config.move_velocity;
- } else if (left && !right) {
- vel.x = -config.move_velocity;
- }
- if (up && !down) {
- vel.y = config.move_velocity;
- } else if (down && !up) {
- vel.y = -config.move_velocity;
+ ctrl.Velocity(glm::vec3(fwd - rev) * config.move_velocity);
+ ctrl.Update(dt);
+
+ place_timer.Update(dt);
+ remove_timer.Update(dt);
+
+ aim = ctrl.Aim();
+ CheckAim();
+
+ if (remove_timer.Hit()) {
+ RemoveBlock();
+ CheckAim();