physics.setForce(force*TrigLUT.cosDeg(counterRotation), force*TrigLUT.sinDeg(counterRotation));
// add sound.
EntityFactory.createSound(world, "sounds/shoot.wav");
ammo.reduceBy(10);
}
}
private void updateTowerRotation(Tower tower, Physics p) {
float r = Utils.angleInDegrees(p.getX(), p.getY(), input.getMouseX(), input.getMouseY());