1
0

Add cEntity::GetBoundingBox, and use where appropriate. (#4711)

* Add cEntity::GetBoundingBox, and use where appropriate.
This commit is contained in:
Alexander Harkness
2020-05-03 20:04:33 +00:00
committed by GitHub
parent 5b92e6654f
commit 994036a3b8
9 changed files with 22 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ public:
}
}
cBoundingBox EntBox(a_Entity.GetPosition(), a_Entity.GetWidth() / 2, a_Entity.GetHeight());
auto EntBox = a_Entity.GetBoundingBox();
// Instead of colliding the bounding box with another bounding box in motion, we collide an enlarged bounding box with a hairline.
// The results should be good enough for our purposes