Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gasoline current consumption?
12-13-2012, 10:43 AM,
Gasoline current consumption?

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


12-13-2012, 01:03 PM, (This post was last modified: 12-13-2012, 01:03 PM by kidice.)
RE: Gasoline current consumption?
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;

Forum Jump:

Users browsing this thread: 1 Guest(s)