pos.addScaled(16, dir);
bullet.setPosition(pos);
dir.scale(1000000);
//bullet.setVelocity(dir);
world.addObject(bullet, true);
bullet.applyImpulse(dir);
}
// Advance the game time by one tick
engine.tick(1.0 / tickRate);
nextTick += NANOS_PER_SEC / tickRate;