Merge pull request #10129 from hyperlogic/bug-fix/teleport-improvements

Recenter body on teleport, also it works more consistently.
This commit is contained in:
Philip Rosedale 2017-04-05 16:45:41 -07:00 committed by GitHub
commit 5e91d578c2

View file

@ -297,8 +297,9 @@ function Teleporter() {
} else if (teleportLocationType === TARGET.SURFACE) {
var offset = getAvatarFootOffset();
intersection.intersection.y += offset;
MyAvatar.position = intersection.intersection;
MyAvatar.goToLocation(intersection.intersection, false, {x: 0, y: 0, z: 0, w: 1}, false);
HMD.centerUI();
MyAvatar.centerBody();
}
}
};