GetVertex

Category: Objects / Vertices
Since engine version: 4.6.5.0 CP

Description

Returns a coordinate of the specified vertex (see DefCore.txt). Coordinates are relative to the object center.

Syntax

int GetVertex (int iIndex, int iValueToGet, object pObj);

Parameters

iIndex:
Index of the vertex to be changed.
iValueToGet:
Specifies which value should be retrieved. The following values are available:
Name Value Description
VTX_X 0 X coordinate of the vertex
VTX_Y 1 Y coordinate of the vertex
VTX_CNAT 2 Direction of the vertex
VTX_Friction 3 Friction of the vertex
pObj:
[opt] Object of which to retrieve vertices. Can be 0 in local calls.
See also: GetVertexNum, SetVertex
jwk, August 2002