mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +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) {
|
} else if (target === TARGET.SURFACE) {
|
||||||
var offset = getAvatarFootOffset();
|
var offset = getAvatarFootOffset();
|
||||||
result.intersection.y += offset;
|
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();
|
HMD.centerUI();
|
||||||
MyAvatar.centerBody();
|
MyAvatar.centerBody();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue