int shots = input1.checkEvent(InputAction.SHOOT);
if (shots > 0) {
WorldObject bullet = new Planet(2,50, TypeE.WEAPON_SHOT_MINE);
Vector2d dir = new Vector2d(Math.cos(player1.getWorldObject().getRotation()), Math.sin(player1.getWorldObject().getRotation()));
Vector2d pos = player1.getWorldObject().getPosition();
pos.addScaled(16, dir);
bullet.setPosition(pos);
dir.scale(1000000);
//bullet.setVelocity(dir);
world.addObject(bullet, true);
bullet.applyImpulse(dir);