Setup
- Attach
VariableCenterOfMass
to the aircraft if not already added.
- Attach
AircraftFuelManager
to the aircraft, preferably to the parent object (one containingAircraftController
).
- Attach
AircraftFuelTank
to an emptyGameObject
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
Aircraft Fuel Tank
Implementation of IMassAffector that represents a fuel tank.
Used together with AircraftFuelManager to manage fuel levels on an aircraft.