Improve planet collision

This commit is contained in:
asraelite 2018-03-03 22:12:53 +00:00
parent 4959519f39
commit ba803b7ca9
7 changed files with 86 additions and 28 deletions

View file

@ -58,8 +58,7 @@ class Perspective {
}
if (this.focus !== null) {
this.x = this.focus.x;
this.y = this.focus.y;
[this.x, this.y] = this.focus.com;
}
if (this.rotationFocus !== null) {