Add cEntity::GetBoundingBox, and use where appropriate. (#4711)
* Add cEntity::GetBoundingBox, and use where appropriate.
This commit is contained in:
committed by
GitHub
parent
5b92e6654f
commit
994036a3b8
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user