repo: janusweb action: commit revision: path_from: revision_from: e25a04aa47e3e6176a76902e83d731d83588e7f9: path_to: revision_to:
commit e25a04aa47e3e6176a76902e83d731d83588e7f9 Author: James BaicoianuDate: Fri Jun 23 16:21:20 2017 -0700 Fix janus object reference diff --git a/scripts/janusghost.js b/scripts/janusghost.js
--- a/scripts/janusghost.js
+++ b/scripts/janusghost.js
@@ -320,7 +320,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() {
this.properties.position.fromArray(pos);
} else {
if (this.interpolateLastPos) {
- var rate = this.janusweb.network.getUpdateRate(this.room);
+ var rate = this.janus.network.getUpdateRate(this.room);
var lastpos = this.interpolateLastPos;
this.properties.position.fromArray(this.interpolateLastPos);
this.properties.velocity.set(pos[0] - lastpos[0], pos[1] - lastpos[1], pos[2] - lastpos[2]).multiplyScalar(1000 / rate);
-----END OF PAGE-----