I give up, I'm just using the stop-dead system for now.

This commit is contained in:
Kayne Ruse
2014-12-27 23:16:48 +11:00
parent b67e85e87b
commit 8708cfbee0
3 changed files with 34 additions and 3 deletions
+12
View File
@@ -21,3 +21,15 @@
*/
#include "local_character.hpp"
#include <iostream>
bool LocalCharacter::ProcessCollisionGrid(std::list<BoundingBox> boxList) {
for(auto& box : boxList) {
if (box.CheckOverlap(origin + bounds)) {
origin -= motion;
motion = {0, 0};
return true;
}
}
return false;
}