updated models and landmass terrain object node accesses for the new XML

model reading
This commit is contained in:
devZoGok
2023-01-04 15:13:22 +02:00
parent d38823d7f9
commit 75e5013abf
4 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ namespace battleship{
//TODO implement terrain evenness check
void UnitFrameController::update(){
Map *map = Map::getSingleton();
MeshData meshData = map->getTerrainObject(0).node->getChild(0)->getMesh(0)->getMeshBase();
MeshData meshData = map->getTerrainObject(0).node->getMesh(0)->getMeshBase();
MeshData::Vertex *verts = meshData.vertices;
int numVerts = 3 * meshData.numTris;