The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
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 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; |