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

@@ -2353,7 +2353,7 @@ float cEntity::GetExplosionExposureRate(Vector3d a_ExplosionPosition, float a_Ex
return 0;
}
cBoundingBox EntityBox(GetPosition(), m_Width / 2, m_Height);
auto EntityBox = GetBoundingBox();
cBoundingBox ExplosionBox(a_ExplosionPosition, a_ExlosionPower * 2.0);
cBoundingBox IntersectionBox(EntityBox);