Removed a boxclear in the end of the test2 method

This commit is contained in:
verysecrethero
2015-12-10 11:03:40 +01:00
parent bc8a922b77
commit c60e968836
4 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -109,8 +109,8 @@ void OctTree::Update(float dt, World* world, Camera* cam)
ComponentWrapper transform = world->GetComponent(m_BoxID, "Transform");
transform["Position"] = boxPos;
ComponentWrapper model = world->GetComponent(m_BoxID, "Model");
//if (BoxCollides(box, AABB())) {
if (Collision::AABBVsAABB(box, aabb)) {
if (BoxCollides(box, AABB())) {
//if (Collision::AABBVsAABB(box, aabb)) {
cam->SetPosition(m_PrevPos);
cam->SetOrientation(m_PrevOri);
model["Color"] = greenCol;