improve input packets

This commit is contained in:
Asraelite 2016-03-30 11:15:32 +01:00
parent a2a93882f0
commit d6daed2e9b
5 changed files with 36 additions and 37 deletions

View file

@ -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])];
}