FuelTank

From UnityCar Wiki

Jump to: navigation, search

This class is used to add fuel tank and fuel consumption simulation. Add it to a GameObject to add fuel tank simulation (with fuel weight simulation) in that position.

WARNING: don't put this GameObject too far from car Center Of Mass, otherwise strange vehicle behaviour can be experienced on crashes due to weak PhysX joint stability. Parameters:


  • Tank Capacity tank capacity (in liters). this affect the weight of the tank.


  • Current Fuel current fuel contained in the tank. its affected by current consumption.


  • Tank Weight tank weight (in kg) without fuel.


  • Fuel Density fuel density (in kg/liters). For standard Gasoline value is 0.73722. Used to calculate fuel weight. If density is 0, fuel has no weight.
Personal tools
Car Tuning
Track Tutorials
Configuration