This commit is contained in:
Thomas FORGIONE 2015-05-27 16:46:21 +02:00
parent 16d6cebf51
commit 00d3d8ce10
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ PointerCamera.prototype.isColliding = function(direction) {
var intersects = this.raycaster.intersectObjects(this.collidableObjects, true);
for (var i in intersects) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 100) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 300) {
return true;
}
}

View File

@ -246,7 +246,7 @@ TutoCamera.prototype.isColliding = function(direction) {
var intersects = this.raycaster.intersectObjects(this.collidableObjects, true);
for (var i in intersects) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 100) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 300) {
return true;
}
}