AutoDetach

Gets and sets a Boolean that determines the behavior of the camera once it reaches the object during a “fly to” operation. For dynamic objects, AutoDetach is set to FALSE by default. In other words, once the camera reaches the dynamic object, it continues following the object. However, if AutoDetach is set to TRUE, once the camera reaches the object, it stops. If the client is constantly updating the position of the object at each frame (as a response to a GPS update, for example), it should set this flag (after creating the object) to false. This way, if the user flies to this object, the camera continues following it.

 

JavaScript

 

AutoDetach

 

C#

 

bool AutoDetach { get; set; }

 

C++

 

HRESULT AutoDetach([out, retval] VARIANT_BOOL* pVal)

HRESULT AutoDetach([in] VARIANT_BOOL pVal)