FlyTo

This method instructs the plane to fly to an object, approaching and focusing in on the object according to the value set in the Pattern parameter.

 

JavaScript

 

FlyTo(

       target,

       Pattern )

 

C#

 

void FlyTo(

       object target,

       ActionCode Pattern = ActionCode.AC_FLYTO)

 

C++

 

HRESULT FlyTo(

       VARIANT target,

       ActionCode Pattern) 

Parameters

target

The object to fly to. This parameter can be any of the following:

·          An object ID represented as a string.

·          ITerraExplorerObject80 derived object

·          ProjectTree GroupID

·          IPosition80 object

Pattern

An enum that instructs the plane on how to approach and focus in on the object. The following are possible values:

·          AC_FLYTO = 0,
Fly to the object.

·          AC_CIRCLEPATTERN = 1,
Perform a circle flight around the object.

·          AC_OVALPATTERN = 2,
Perform an oval flight pattern around the object.

·          AC_LINEPATTERN = 3,
Perform a tight oval flight pattern around the object.

·          AC_ARCPATTERN = 4,
Perform a vertical arc flight above the object.

·          AC_FOLLOWBEHIND = 5,
View the object from behind.

·          AC_FOLLOWABOVE = 6,
View the object from above.

·          AC_FOLLOWBELOW = 7,
View the object from below.

·          AC_FOLLOWRIGHT = 8,
View the object from the right-hand side.

·          AC_FOLLOWLEFT = 9,
View the object from the left-hand side.

·          AC_FOLLOWBEHINDANDABOVE = 10,
View the object from behind and above (45 degrees).

·          AC_FOLLOWCOCKPIT = 11,
View the world from the object’s pivot point.

·          AC_FOLLOWFROMGROUND = 12,
View the object from the ground.

·          AC_STOP = 13,
Stop the flight to an object.

·          AC_JUMP = 14,
Jump directly to the object.

·          AC_PLAY = 18,
Play the object's activation action.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.