aeronautic

Installation

Install the package and its peer dependencies.

From npm

pnpm add @aeronautic/contrails @aeronautic/core three@~0.186

For the React component, add React Three Fiber too, if you don't have it yet:

pnpm add @react-three/fiber react react-dom
peerversionneeded for
@aeronautic/core0.1everything: the flight and air
three0.186.xeverything
react19@aeronautic/contrails/react
@react-three/fiber9 or 10@aeronautic/contrails/react

Entry points

importwhat's in it
@aeronautic/contrails/react<Contrails> and its types.
@aeronautic/contrailsThe plain three.js class, the fuels, the quality presets, defaults and types.
@aeronautic/contrails/physicsThe criterion, the plume, the ice and the wake, for a flight model or a HUD.

The renderer must be three's WebGPURenderer. webgpu_gl() from @aeronautic/core/react makes one for <Canvas gl>.

Next, put contrails on an aircraft.

On this page