repo: janusweb action: commit revision: path_from: revision_from: 8ef08a119078fcca55b894e66115a54e8dc20956: path_to: revision_to:
commit 8ef08a119078fcca55b894e66115a54e8dc20956 Author: James BaicoianuDate: Tue May 29 09:00:36 2018 -0700 Fix room orientation for translators diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -652,6 +652,10 @@ elation.require([
if (room.pos) {
this.spawnpoint.position.fromArray(room.pos);
}
+ if (room.xdir || room.ydir || room.zdir) {
+ room.orientation = this.janus.parser.getOrientation(room.xdir, room.ydir, room.zdir);
+ }
+
if (room.orientation) {
this.spawnpoint.quaternion.copy(room.orientation);
this.spawnpoint.quaternion.multiply(new THREE.Quaternion().setFromEuler(new THREE.Euler(0,Math.PI,0))); // Janus Native starts the player backwards
-----END OF PAGE-----