mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Maintain virtual and real world orientations when teleport
This commit is contained in:
parent
6c92949aed
commit
3bfdd3ff58
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
} else if (target === TARGET.SURFACE) {
|
||||
var offset = getAvatarFootOffset();
|
||||
result.intersection.y += offset;
|
||||
MyAvatar.goToLocation(result.intersection, false, {x: 0, y: 0, z: 0, w: 1}, false);
|
||||
MyAvatar.goToLocation(result.intersection, true, HMD.orientation, false);
|
||||
HMD.centerUI();
|
||||
MyAvatar.centerBody();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue