WIP, should take shortest resolution even if forced upwards because of slopes, not solving the jittering problem though. + debug code.

This commit is contained in:
William Moberg
2016-02-29 09:37:51 +01:00
parent 0c60b637c3
commit db5170c699
2 changed files with 113 additions and 45 deletions
+2
View File
@@ -12,6 +12,7 @@ void CollisionSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapper& c
if (!boundingBox) {
return;
}
std::cout << "---->>>--Start Update--------" << std::endl;
ComponentWrapper& cTransform = entity["Transform"];
EntityAABB& boxA = *boundingBox;
bool everHitTheGround = false;
@@ -115,4 +116,5 @@ void CollisionSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapper& c
}
m_PrevPositions[entity] = boxA.Origin();
std::cout << "--------End Update---->>>--" << std::endl;
}