Fuel
The Fuel system manages fuel consumption and distribution across an aircraft through fuel tanks and consumers. It integrates with the aircraft's center of mass system to accurately simulate weight and balance changes as fuel is consumed during flight.
Setup
- Attach
VariableCenterOfMass(from NWH Common) to the aircraft if not already added. - Attach AircraftFuelManager to the aircraft, preferably to the parent object (one containing
AircraftController). - Attach AircraftFuelTank to an empty
GameObjectand position it to the rough location of where the fuel tank is on the given aircraft. Usually in the roots of the wings and in the fuselage. Position is important since it affects center of mass and inertia tensor. - Attach EngineAircraftFuelConsumer to any engines present on the aircraft.
- Upon pressing play the AircraftFuelManager should show all the consumers and fuel tanks in their respective lists.
Related Components
- AircraftFuelManager - Manages fuel consumption and balance
- AircraftFuelTank - Physical fuel tank affecting weight/balance
- EngineAircraftFuelConsumer - Calculates fuel consumption from engine power
VariableCenterOfMass(NWH Common) - Manages dynamic center of mass adjustments