From 0347af968298e3456101990a5d1b9b9641b93edf Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 7 May 2015 14:03:50 -0700 Subject: [PATCH] minor cleanup --- libraries/physics/src/EntityMotionState.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/physics/src/EntityMotionState.cpp b/libraries/physics/src/EntityMotionState.cpp index b2a34bced0..d3a1d67d4a 100644 --- a/libraries/physics/src/EntityMotionState.cpp +++ b/libraries/physics/src/EntityMotionState.cpp @@ -151,8 +151,10 @@ void EntityMotionState::setWorldTransform(const btTransform& worldTrans) { _movingStepsWithoutSimulationOwner = 0; } - if (_movingStepsWithoutSimulationOwner > 50) { // XXX maybe meters from our characterController ? - qDebug() << "XXX XXX XXX -- claiming something I saw moving"; + int ownershipClaimDelay = 50; // TODO -- how to pick this? based on meters from our characterController? + + if (_movingStepsWithoutSimulationOwner > ownershipClaimDelay) { + qDebug() << "Warning -- claiming something I saw moving." << getName(); setShouldClaimSimulationOwnership(true); }