I'm trying to use a triangle mesh for a model where a vehicle will be driving, my problem is that when using the TriangleMeshObject to create the mesh based on the model I get a IndexOutOfRangeException.
This is the line that gives the error:
triangleMesh.CreateMesh(vertexList,indexList, 4, 1.0f);
The vertexList has 71292 values and the indexList has 82599.
Looks like there may be too much vertex's for the function, is there any way I can get this to work?