MCPcopy Create free account
hub / github.com/axmolengine/axmol / stepPhysicsAndNavigation

Method stepPhysicsAndNavigation

core/2d/Scene.cpp:378–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377#if (defined(AX_ENABLE_PHYSICS) || defined(AX_ENABLE_3D_PHYSICS) || defined(AX_ENABLE_NAVMESH))
378void 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}

Callers 1

drawSceneMethod · 0.80

Calls 2

stepSimulateMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected