mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
minor cleanup
This commit is contained in:
parent
f52747d8c1
commit
0347af9682
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue