| 376 | |
| 377 | #if (defined(AX_ENABLE_PHYSICS) || defined(AX_ENABLE_3D_PHYSICS) || defined(AX_ENABLE_NAVMESH)) |
| 378 | void Scene::stepPhysicsAndNavigation(float deltaTime) |
| 379 | { |
| 380 | # if defined(AX_ENABLE_PHYSICS) |
| 381 | if (_physicsWorld && _physicsWorld->isAutoStep()) |
| 382 | _physicsWorld->update(deltaTime); |
| 383 | # endif |
| 384 | |
| 385 | # if defined(AX_ENABLE_3D_PHYSICS) |
| 386 | if (_physics3DWorld) |
| 387 | { |
| 388 | _physics3DWorld->stepSimulate(deltaTime); |
| 389 | } |
| 390 | # endif |
| 391 | # if defined(AX_ENABLE_NAVMESH) |
| 392 | if (_navMesh) |
| 393 | { |
| 394 | _navMesh->update(deltaTime); |
| 395 | } |
| 396 | # endif |
| 397 | } |
| 398 | #endif |
| 399 | |
| 400 | } |
no test coverage detected