| 40 | } |
| 41 | |
| 42 | BoundingBox SceneNavigation::GetNavigationBounds() |
| 43 | { |
| 44 | if (Volumes.IsEmpty()) |
| 45 | return BoundingBox::Empty; |
| 46 | PROFILE_CPU_NAMED("GetNavigationBounds"); |
| 47 | auto box = Volumes[0]->GetBox(); |
| 48 | for (int32 i = 1; i < Volumes.Count(); i++) |
| 49 | BoundingBox::Merge(box, Volumes[i]->GetBox(), box); |
| 50 | return box; |
| 51 | } |
| 52 | |
| 53 | NavMeshBoundsVolume* SceneNavigation::FindNavigationBoundsOverlap(const BoundingBox& bounds) |
| 54 | { |