Esempio n. 1
0
 void Drive(float deltaTime)
 {
     if (fuelTank.FuelAmount > 0.0f)
     {
         var fuel     = fuelTank.pumpFuel(deltaTime);
         var rpm_e    = engine.turn(fuel);
         var rpm_g    = gearbox.turn(rpm_e);
         var distance = wheels.turn(rpm_g);
         positionX += distance;
     }
 }