Category: Objects / Vertices
Since engine version: 1.0 OC
Sets both X and Y position of a vertex.
bool SetVertexXY(int index, int xpos, int ypos);
- Vertex number
- Desired X offset of the vertex.
- Desired Y offset of the vertex.
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.
GetCrew(0,0)->SetVertexXY(2, -5, -10);
Sets the third vertex of the first clonk of the first player to -5/-10.