| 1219 | } |
| 1220 | |
| 1221 | void 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 | |
| 1235 | void Navigation::BuildNavMesh(const BoundingBox& dirtyBounds, Scene* scene, float timeoutMs) |
| 1236 | { |
nothing calls this directly
no test coverage detected