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

Method BuildNavMesh

Source/Engine/Navigation/NavMeshBuilder.cpp:1221–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219}
1220
1221void Navigation::BuildNavMesh(Scene* scene, float timeoutMs)
1222{
1223 PROFILE_CPU();
1224 PROFILE_MEM(NavigationBuilding);
1225 ScopeLock lock(NavBuildQueueLocker);
1226
1227 BuildRequest req;
1228 req.Scene = scene;
1229 req.Time = DateTime::NowUTC() + TimeSpan::FromMilliseconds(timeoutMs);
1230 req.DirtyBounds = BoundingBox::Empty;
1231 req.SpecificScene = scene != nullptr;
1232 BuildNavigation(req);
1233}
1234
1235void Navigation::BuildNavMesh(const BoundingBox& dirtyBounds, Scene* scene, float timeoutMs)
1236{

Callers

nothing calls this directly

Calls 2

BuildNavigationFunction · 0.85
GetVolumeMethod · 0.80

Tested by

no test coverage detected