repo: janusweb action: commit revision: path_from: revision_from: ba63bb2250859f9797c42f1a8d0dc7f202c5ea7b: path_to: revision_to:
commit ba63bb2250859f9797c42f1a8d0dc7f202c5ea7b Author: James BaicoianuDate: Sun Jan 24 04:47:06 2016 -0800 Move player to (0,0,0) when walking through a new portal diff --git a/scripts/portal.js b/scripts/portal.js
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -150,7 +150,7 @@ elation.require(['engine.things.portal'], function() {
this.click = function(ev) {
if (ev.data.distance < 4 && this.properties.url) {
this.frame.material.emissive.setHex(0x662222);
- this.properties.janus.setActiveRoom(this.properties.url);
+ this.properties.janus.setActiveRoom(this.properties.url, [0,0,0]);
setTimeout(elation.bind(this, function() { this.frame.material.emissive.setHex(0x222222); }), 250);
}
}
-----END OF PAGE-----