mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 12:03:31 +00:00
updated models and landmass terrain object node accesses for the new XML
model reading
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user