PickTerrainCoord

From SIMboxWiki
Jump to navigation Jump to search

Description

Use the function PickTerrainCoord to retrieve the 3D position of the picking point.

PickTerrainCoord works only on regular cameras (that are created for a window handles using TriD::CreateCamera) and not video cameras (AGI object that are created using Agi::CreateVideoCamera).

Syntax

ZS_DECL zsRET ZSAPI PickTerrainCoord(UINT nID,

int nX,
int nY,
zsVec3& vPos
);

Parameters

Return Value