Improve planet collision
This commit is contained in:
parent
4959519f39
commit
ba803b7ca9
7 changed files with 86 additions and 28 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue