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