Table of Contents

Step-by-step Setup

This tutorial will describe setting up Cirrus SR22 in an empty Unity scene. The end result scene of the guide is included in the project and is named TutorialScene.

Cirrus SR22 model can be found under NWH ⇒ Aerodynamics ⇒ Models directory.

Reading the Airfoil documentation before starting the aircraft setup is highly recommended

Scene Setup

Tutorial scene after the setup.

Aircraft Controller

Cirrus SR22 after adding MeshColliders.
AircraftController and required components (automatically added).

That is it for the core aircraft setup. The next step is making the aircraft fly.

Cameras

Airfoils

Tips:

To test out the setup place the aircraft 500m above the ground and press play. It should slowly tip forward and gain speed.

Once the Airfoils are set up as per the instructions above the aircraft should look like this:

Aircraft with Airfoils set up. Note the yellow lines between the airfoil (blue) and control surface (red) sections.

Aerodynamic Drag Objects

Besides airfoils aircraft also have objects that contribute little or nothing to lift, but do cause drag. In NWH Aerodynamics these can be set up using AerodynamicDragObject.

Fuselage set up with AerodynamicDragObject.

Landing Gear

After pressing play, currently the aircraft drops to the ground. To prevent this we need to add the landing gear.

The landing gear for Cirrus SR22 is now set up. For more details on LandingGear check out this page.

Landing gear after setup.
Landing gear WheelCollider gizmos.

Propulsion

The final step to setting up a functional aircraft is adding propulsion.

Cirrus SR22 is propelled by a piston engine connected to a variable-pitch propeller so PistonEngine and PropellerPropulsor will be used.

To test the propulsion enter play mode and hold the T key for 2 to 3 seconds to start the engine. Afterwards, press F4 to increase the throttle to 100%. After gaining some speed the aircraft will be able to take off.

PropellerPropulsor after setup. The circle shows the propeller radius and the white spokes show the number of propeller blades. Red ray is the direction of the thrust.

Sound

The aircraft is now fully functional but is lacking sound.

Press play to test out the sounds.

Readouts

For testing purposes a DemoReadouts component can be helpful as it shows the basic flight data. This step is optional but recommended.

Pressing play will now produce a row of basic flight data readouts.

Demo readouts.

Wrapping Up

The basic aircraft setup is now finished. For steps on setting up other optional aspects of the aircraft such as lights, instruments and fuel check out their respective pages: