Category: Objects
/ Vertices Since engine version: 8.0 OC
Description
Inserts a new vertex to an object.
Syntax
bool InsertVertex(int index, int x, int y);
Parameters
index:
Index of the vertex to be removed, ranges from 0 to GetVertexNum.
x:
X coordinate, relative to the object center.
y:
Y coordinate, relative to the object center.
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.