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

Method GetLocalBoundingBox

trinity/Tr2SkinnedObject.cpp:616–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616bool Tr2SkinnedObject::GetLocalBoundingBox( Vector3& min, Vector3& max ) const
617{
618 if( m_useExplicitBounds )
619 {
620 min = m_minBounds;
621 max = m_maxBounds;
622 return true;
623 }
624
625 if( m_useDynamicBounds && m_hasDynamicBounds )
626 {
627 min = m_minDynamicBounds;
628 max = m_maxDynamicBounds;
629 return true;
630 }
631
632 // pass down to
633 if( m_visualModel )
634 {
635 return m_visualModel->GetBoundingBox( min, max );
636 }
637 return false;
638}
639
640// -------------------------------------------------------------
641// Description:

Callers

nothing calls this directly

Calls 1

GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected