| 281 | } |
| 282 | |
| 283 | bool 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 | } |
no test coverage detected