Trying to implement smooth collisions without other issues

This commit is contained in:
Kayne Ruse
2014-12-27 16:43:40 +11:00
parent ee0b7884a8
commit 5c1ea1988e
3 changed files with 54 additions and 3 deletions
+5 -1
View File
@@ -156,6 +156,10 @@ void InWorld::Update() {
//update all entities
for (auto& it : characterMap) {
//skip this player's character
if (it.first == characterIndex) {
continue;
}
it.second.Update();
}
for (auto& it : monsterMap) {
@@ -198,7 +202,7 @@ void InWorld::Update() {
}
//process the collisions
std::cout << "boxList.size(): " << boxList.size() << std::endl;
localCharacter->ProcessCollisions(boxList);
//update the camera
camera.x = localCharacter->GetOrigin().x - camera.marginX;