improve input packets
This commit is contained in:
parent
a2a93882f0
commit
d6daed2e9b
5 changed files with 36 additions and 37 deletions
|
@ -28,7 +28,7 @@ class Asteroid extends Body {
|
|||
let modded = angles.map(a => a % Math.PI);
|
||||
var max = modded.reduce((a, b) => Math.max(a, b));
|
||||
var min = modded.reduce((a, b) => Math.min(a, b));
|
||||
} while (max - min < 1)
|
||||
} while (max - min < 2)
|
||||
|
||||
return [angles.sort().map(a => [Math.cos(a) * s, Math.sin(a) * s])];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue