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

Method GetLocalBoundingBox

trinity/Interior/Tr2InteriorPlaceable.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool Tr2InteriorPlaceable::GetLocalBoundingBox( Vector3& min, Vector3& max ) const
81{
82 if( m_isBoundingBoxModified )
83 {
84 min = m_minBounds;
85 max = m_maxBounds;
86 return true;
87 }
88 // Pass down to the WodPlaceableRes
89 if( m_placeableRes && m_placeableRes->IsReady() )
90 {
91 m_placeableRes->GetBoundingBox( min, max );
92 return true;
93 }
94 return false;
95}
96
97// --------------------------------------------------------------------------------
98// Description:

Callers

nothing calls this directly

Calls 2

IsReadyMethod · 0.80
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected