enemy walking around world

This commit is contained in:
Remco
2016-06-03 13:58:07 +02:00
parent b827885f40
commit 293ceb0b9f
3 changed files with 12 additions and 3 deletions
+3
View File
@@ -6,6 +6,7 @@
#include "CrystalPoint.h"
#include <fstream>
#include <iostream>
#include "WorldHandler.h"
World::World(const std::string &fileName)
{
@@ -181,6 +182,8 @@ void World::update(float elapsedTime)
}
}
}
WorldHandler* worldhandler = WorldHandler::getInstance();
enemy->position.y = worldhandler->getHeight(enemy->position.x, enemy->position.z) + 2.0f;
//tot hier
}
}