NWH Aerodynamics Documentation
Docs » NWH:Aerodynamics:AircraftController:Fuel

Setup

  • Attach VariableCenterOfMass 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 GameObject and 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.

Aircraft Fuel Manager

AircraftFuelManager inspector.

Manages FuelConsumers and FuelTanks on an aircraft.
For consumers and tanks to be discovered they must be placed as children to this script. Once the fuel is depleted OnOutOfFuel event is triggered. If the aircraft has any engines these will be shut off on this event.

2023/05/14 16:43

Aircraft Fuel Tank

Implementation of IMassAffector that represents a fuel tank.
Used together with AircraftFuelManager to manage fuel levels on an aircraft.

2023/05/14 16:43

Engine Aircraft Fuel Consumer

Type of AircraftFuelConsumer that should be attached next the AircraftEngineBase (or more accurately one of the classes that inherit from it such as PistonEngine).
Calculates fuel consumption based on Efficiency and currently generated power.

2023/05/14 16:43
Previous Next

NWH Aerodynamics Documentation

Table of Contents

Table of Contents

  • Setup
  • Aircraft Fuel Manager
  • Aircraft Fuel Tank
  • Engine Aircraft Fuel Consumer
  • About
  • Import Guide
  • Airfoil
  • AircraftController
  • Environment
  • NWH Common Scripts
  • Demos
  • Upgrade Notes
  • Changelog
  • Support