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

Method GetDynamicBoundingBox

trinity/Tr2SkinnedModel.cpp:283–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283bool Tr2SkinnedModel::GetDynamicBoundingBox( const Matrix* boneTransforms, Vector3& minBounds, Vector3& maxBounds ) const
284{
285 if( m_meshes.empty() )
286 {
287 return false;
288 }
289
290 BoundingBoxInitialize( minBounds, maxBounds );
291
292 for( auto it = begin( m_meshes ); it != end( m_meshes ); ++it )
293 {
294 if( auto aabb = ( *it )->GetBounds( boneTransforms ) )
295 {
296 BoundingBoxUpdate( minBounds, maxBounds, aabb.m_min, aabb.m_max );
297 }
298 }
299 return true;
300}

Callers 1

UpdateBonesMethod · 0.80

Calls 6

BoundingBoxInitializeFunction · 0.85
BoundingBoxUpdateFunction · 0.85
emptyMethod · 0.80
beginFunction · 0.70
endFunction · 0.70
GetBoundsMethod · 0.45

Tested by

no test coverage detected