Merge pull request #8514 from imgntn/center_hud

Center HMD Hud after teleport
This commit is contained in:
Ryan Downe Karpf 2016-08-23 13:34:29 -07:00 committed by GitHub
commit 82041e4baa

View file

@ -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);
}
}