Remove old physics-enabling code

This commit is contained in:
Simon Walton 2018-07-27 17:32:35 -07:00
parent 5315b020ec
commit 2ac6ca3291

View file

@ -5475,10 +5475,9 @@ void Application::update(float deltaTime) {
// we haven't yet enabled physics. we wait until we think we have all the collision information
// for nearby entities before starting bullet up.
quint64 now = usecTimestampNow();
//const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
// Check for flagged EntityData having arrived.
auto entityTreeRenderer = getEntities();
if (entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) ) {
/*if (now - _lastPhysicsCheckTime > PHYSICS_CHECK_TIMEOUT || _fullSceneReceivedCounter > _fullSceneCounterAtLastPhysicsCheck) {*/
// we've received a new full-scene octree stats packet, or it's been long enough to try again anyway
_lastPhysicsCheckTime = now;
_fullSceneCounterAtLastPhysicsCheck = _fullSceneReceivedCounter;