MotionStyle

Gets and sets an enum that determines the characteristics of the object’s motion. The enum has the following values:

§   MOTION_GROUND_VEHICLE = 0
The object pitch and roll are determined by the terrain underneath the object.

§   MOTION_AIRPLANE = 1
The object rolls like an airplane on turns and its nose pitch points to the next waypoint.

§   MOTION_HELICOPTER = 2
The object pitch is always -30° and its roll is always 0.

§   MOTION_HOVER = 3
The object pitch and roll are both always 0.

§   MOTION_MANUAL = 4
The object turns as fast as required to point to the next waypoint defined by IRouteWaypoint80, ignoring the TurnSpeed (this is equivalent to setting TurnSpeed over 1000). The API client can set the yaw, pitch, and roll at each waypoint. If the value -9999 is entered for any of these parameters, a default value will be calculated for this parameter so that the object will point to the next waypoint.

 

JavaScript

 

 

 

MotionStyle

 

C#

 

 

 

DynamicMotionStyle MotionStyle { get; set; }

 

C++

 

 

 

HRESULT MotionStyle([out, retval] DynamicMotionStyle* pVal)

HRESULT MotionStyle([in] DynamicMotionStyle pVal)