mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 16:26:17 +02:00
Merge pull request #8514 from imgntn/center_hud
Center HMD Hud after teleport
This commit is contained in:
commit
82041e4baa
1 changed files with 3 additions and 0 deletions
|
@ -553,6 +553,7 @@ function Teleporter() {
|
|||
_this.smoothArrivalInterval = Script.setInterval(function() {
|
||||
if (_this.arrivalPoints.length === 0) {
|
||||
Script.clearInterval(_this.smoothArrivalInterval);
|
||||
HMD.centerUI();
|
||||
return;
|
||||
}
|
||||
var landingPoint = _this.arrivalPoints.shift();
|
||||
|
@ -564,6 +565,8 @@ function Teleporter() {
|
|||
}
|
||||
|
||||
}, SMOOTH_ARRIVAL_SPACING);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue