MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetNavigationBounds

Method GetNavigationBounds

Source/Engine/Level/Scene/Scene.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42BoundingBox 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
53NavMeshBoundsVolume* SceneNavigation::FindNavigationBoundsOverlap(const BoundingBox& bounds)
54{

Callers 1

UpdateMethod · 0.80

Calls 4

MergeFunction · 0.50
IsEmptyMethod · 0.45
GetBoxMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected