DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateTriMesh() [2/2]

static proto PhysicsGeom PhysicsGeom::CreateTriMesh ( vector vertices[],
int indices[],
int numVertices,
int numIndices )
staticprivate

Creates tri-mesh geometry

const int numVerts = 4;
const int numInds = 12;
vector verts[numVerts] = { "0 0 0", "1 0 0", "0 0 1", "0 1 0" };
int inds[numInds] = { 0, 1, 2, 0, 3, 1, 3, 2, 1, 0, 2, 3 };
PhysicsGeom geom = PhysicsGeom.CreateTriMesh(verts, inds, numVerts, numInds);
Определения EnConvert.c:119
int[] PhysicsGeom
Определения PhysicsGeom.c:10
Аргументы
verticesSet of vertices representing the geometry
indicesSet of indices representing the geometry
numVerticesNumber of vertices
numIndicesNumber of indices