Improved collisions
This commit is contained in:
parent
d3bf9db542
commit
7b5b94947a
|
@ -139,8 +139,6 @@ PointerCamera.prototype.update = function() {
|
||||||
|
|
||||||
if (!this.isColliding(direction)) {
|
if (!this.isColliding(direction)) {
|
||||||
this.position.add(direction);
|
this.position.add(direction);
|
||||||
} else {
|
|
||||||
this.position.sub(direction);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update angle
|
// Update angle
|
||||||
|
|
Loading…
Reference in New Issue