Home > Working with SGWorld > Navigate (INavigate6) > SetPosition

SetPosition

Sets the position of the camera in the 3D World.

 

JavaScript

 

SetPosition(

      Position)

 

C#

 

void SetPosition(

      object Position)

 

C++

 

HRESULT SetPosition(

      IPosition6Position)

 

Parameters

Position

An IPosition6 representing the position of the camera, defined by its coordinates in the  3D world.

Exceptions

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