Unique Coding

Combat Flight Framework

Overview

Combat Flight Framework is available on the Unity Asset Store, providing a collection of scripts for flight simulation. It includes scripts for aerodynamics, rotation control for believable control-surface motion, and scripts for targeting and weapons.

View on Unity Asset Store

Demo

A WebGL demo of the example scene is available.

Fly the demo scene ~40MB

Physics

Control surfaces or thrusters placed on your aircraft directly generate the forces that move the rigidbody. These forces are predicted by the rotation control, to make the adjustments that control the aircraft. The result is believable motion of the aircraft and its control surfaces. The accuracy and behaviour of the rotation control can be tweaked to optimise performance and for different flight effects.

The main components are small and modular, and potentially useful in applications other than this flight sim.

Includes math for accurate prediction of trajectories.

Structure

While the single demo aircraft is provided that can be modified, this is not just a single script to create an aircraft. Joining together of modular components is required for the positioning of forces, balancing of mass, detection and input.

Extra notes

The provided input setup depends on the legacy input system.

Models and some scripts are provided mainly for the purpose of the demo so best to use your own customised assets in a product. For example the HUD, scene and some demo fighter-jet specific scripts.

Asset support contact: flightphysics@protonmail.com