Forums
Gasoline current consumption? - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Gasoline current consumption? (/showthread.php?tid=1674)



Gasoline current consumption? - kraessig - 12-13-2012

Hi,

I've got a question. Right now we are preparing a setup for a study (at the university of salzburg).

One of our crucial factors would be the current gasoline consumption of the driven vehicle. Is there any way to get those?

I found an GetOutofGas method within the car object. (but i don't think that this will really be of use to me)

Help would be greatly appreciated Wink

sincerely

kraessig


RE: Gasoline current consumption? - kidice - 12-13-2012

Hi kraessig,

you'll find the calculation of the fuel consumption in the class carengine. just look into the method "integrate". there you'll find this piece of code:

btScalar fuel_consumed = boost * info.fuel_rate * dt;