Showing the changes to interface/src/Application.cpp (1 of 10 files). Show all
Unified · Split
| @@ -4439,7 +4439,10 @@ void Application::update(float deltaTime) { · 4438 unmodified lines | ||
| 4439 | 4439 | |
| 4440 | 4440 | getEntities()->getTree()->withWriteLock([&] { |
| 4441 | 4441 | PerformanceTimer perfTimer("handleOutgoingChanges"); |
| 4442 | − const VectorOfMotionStates& outgoingChanges = _physicsEngine->getOutgoingChanges(); | |
| 4442 | + const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates(); | |
| 4443 | + _entitySimulation->handleDeactivatedMotionStates(deactivations); | |
| 4444 | + | |
| 4445 | + const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates(); | |
| 4443 | 4446 | _entitySimulation->handleChangedMotionStates(outgoingChanges); |
| 4444 | 4447 | avatarManager->handleChangedMotionStates(outgoingChanges); |
| 4445 | 4448 | }); |