Maintain virtual and real world orientations when teleport

This commit is contained in:
David Rowe 2018-07-27 15:18:40 +12:00
parent 6c92949aed
commit 3bfdd3ff58

View file

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