Merge pull request #13705 from ctrlaltdavid/M17068

Maintain virtual and real world orientations when teleport
This commit is contained in:
John Conklin II 2018-07-27 12:44:22 -07:00 committed by GitHub
commit a1f9d87437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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