Let's open helicontrol sample.
Select

in the main toolbar, then open
helicontrol.db in
data/db/samples/osg/helicontrol
Once loaded, your application will looks like below:
This demo shows the use of user input to control an helicopter and engage user behavior.
Recompile and Start the simulation.
Two windows should be available:
Using the control panel, press the button "Hover" than "Turn 180".
-
Engage "Search mode" and "Detection Sensor".
-
Observe how the helicopter will start looking for the <truck> target.
-
As soon as the sensor detects something, the helicopter will stop.
-
Press then "Fire Missile". The helicopter will then move away from the target then face it and fire a missile towards the target.
-
Press "Land" and see how the helicopter gently land on the ground.