Yes baby
This commit is contained in:
parent
05f47aa5e7
commit
16d6cebf51
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue