mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-25 17:38:45 +02:00
Set timeout before enabling drive keys
This commit is contained in:
parent
8900c4f2cd
commit
c1b818cd9b
1 changed files with 5 additions and 2 deletions
|
@ -6247,8 +6247,11 @@ void MyAvatar::endSit(const glm::vec3& position, const glm::quat& rotation) {
|
||||||
setHMDLeanRecenterEnabled(true);
|
setHMDLeanRecenterEnabled(true);
|
||||||
centerBody();
|
centerBody();
|
||||||
goToLocation(position, true, rotation, false, false);
|
goToLocation(position, true, rotation, false, false);
|
||||||
// Enable movement again
|
float TIME_BEFORE_DRIVE_ENABLED_MS = 150.0f;
|
||||||
setSitDriveKeysStatus(true);
|
QTimer::singleShot(TIME_BEFORE_DRIVE_ENABLED_MS, [this]() {
|
||||||
|
// Enable movement again
|
||||||
|
setSitDriveKeysStatus(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue