SetVertexXY

Category: Objects / Vertices
Since engine version: 1.0 OC

Description

Sets both X and Y position of a vertex.

Syntax

bool SetVertexXY(int index, int xpos, int ypos);

Parameters

index:
Vertex number
xpos:
Desired X offset of the vertex.
ypos:
Desired Y offset of the vertex.

Remark

Notice: with any vertex updated caused by stretching or rotation of the object (e.g. building or growth) the vertices will be reset to their original defined position unless a special vertex mode is selected.

Example

GetCrew(0,0)->SetVertexXY(2, -5, -10);
Sets the third vertex of the first clonk of the first player to -5/-10.
See also: AddVertex, RemoveVertex, SetVertex
flgr, 2002-01