This commit is contained in:
Thomas FORGIONE 2015-05-27 16:44:18 +02:00
parent 05f47aa5e7
commit 16d6cebf51
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)) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 100) {
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)) {
if (intersects[i].distance < Tools.norm(direction) + this.speed * 100) {
return true;
}
}