mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +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);
|
||||
centerBody();
|
||||
goToLocation(position, true, rotation, false, false);
|
||||
// Enable movement again
|
||||
setSitDriveKeysStatus(true);
|
||||
float TIME_BEFORE_DRIVE_ENABLED_MS = 150.0f;
|
||||
QTimer::singleShot(TIME_BEFORE_DRIVE_ENABLED_MS, [this]() {
|
||||
// Enable movement again
|
||||
setSitDriveKeysStatus(true);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue