MCPcopy Create free account
hub / github.com/carbonengine/trinity / UpdateWorldBounds

Method UpdateWorldBounds

trinity/Eve/SpaceObject/EveSwarm.cpp:787–795  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

785
786// --------------------------------------------------------------------------------
787void EveSwarm::UpdateWorldBounds()
788{
789 Vector4 bs;
790 BoundingSphereFromBox( bs, m_squadBoundsMin, m_squadBoundsMax );
791 m_boundingSphereWorldCenter.x = bs.x;
792 m_boundingSphereWorldCenter.y = bs.y;
793 m_boundingSphereWorldCenter.z = bs.z;
794 m_boundingSphereWorldRadius = bs.w + m_modelScale * m_boundingSphereRadius;
795}
796
797// --------------------------------------------------------------------------------
798// Description:

Callers

nothing calls this directly

Calls 1

BoundingSphereFromBoxFunction · 0.85

Tested by

no test coverage detected