Showing the changes to interface/src/Application.cpp (1 of 57 files). Show all
Unified · Split
| @@ -6350,6 +6350,8 @@ void Application::update(float deltaTime) { · 6349 unmodified lines | ||
| 6350 | 6350 | _physicsEngine->processTransaction(transaction); |
| 6351 | 6351 | myAvatar->getCharacterController()->handleProcessedPhysicsTransaction(transaction); |
| 6352 | 6352 | myAvatar->prepareForPhysicsSimulation(); |
| 6353 | + _physicsEngine->enableGlobalContactAddedCallback(myAvatar->isFlying()); | |
| 6354 | + | |
| 6353 | 6355 | _physicsEngine->forEachDynamic([&](EntityDynamicPointer dynamic) { |
| 6354 | 6356 | dynamic->prepareForPhysicsSimulation(); |
| 6355 | 6357 | }); |