Some stuff

This commit is contained in:
Thomas FORGIONE
2015-06-23 14:05:40 +02:00
parent 5ba5f57261
commit 6242e6f122
3 changed files with 6 additions and 5 deletions

View File

@@ -166,8 +166,8 @@ PointerCamera.prototype.normalMotion = function(time) {
if (this.motion.decreaseTheta) {this.theta -= this.sensitivity * time / 20; this.changed = true; }
if ( this.pointerLocked || this.dragging) {
this.theta += this.mouseMove.x * time / 20;
this.phi -= this.mouseMove.y * time / 20;
this.theta += this.mouseMove.x * 20 / time;
this.phi -= this.mouseMove.y * 20 / time;
this.mouseMove.x = 0;
this.mouseMove.y = 0;

View File

@@ -67,7 +67,7 @@ var _parseList2 = function(arr) {
var ProgressiveLoaderGeometry = function(path, scene, camera, callback) {
// Init attributes
this.objPath = path.substring(1, path.length);
this.objPath = path;
this.texturesPath = path.substring(0, path.lastIndexOf('/')) + '/';
this.mtlPath = path.replace('.obj', '.mtl');
this.scene = scene;