MovePosition

Updates the position of the camera in the 3D World. Unlike SetPosition(), this method should be used as part of a flowing motion (by which it is more efficient when moving the camera position by short distance from the current camera position). A typical scenario would be to handle _ITerraExplorerEvents2::OnFrame() event and to call the MovePosition() method to update the camera position as a response to a user input.

 

HRESULT MovePosition(

[in] double X,

[in] double Y,

[in] double Height,

[in] double Yaw,

[in] double Pitch,

[in] double Roll,

[in] double CameraDeltaYaw,

[in] double CameraDeltaPitch,

[in, defaultvalue(0)] long Flags)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.