From 9b8a19826b87b5cbe4728515c07e0820fe744cde Mon Sep 17 00:00:00 2001 From: Awlex Date: Tue, 11 Oct 2016 15:07:00 +0200 Subject: [PATCH] removed 'WaitForDelay' because it disrupted the spinner --- src/awlex/ospu/spinners/SpiralSpinner.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/awlex/ospu/spinners/SpiralSpinner.java b/src/awlex/ospu/spinners/SpiralSpinner.java index c6724f64..41d5935a 100644 --- a/src/awlex/ospu/spinners/SpiralSpinner.java +++ b/src/awlex/ospu/spinners/SpiralSpinner.java @@ -65,7 +65,7 @@ public class SpiralSpinner extends Spinner { @Override public double[] getPoint() { - if (waitForDelay()) { + //if (waitForDelay()) { if (down) { if (--index == 0) down = !down; @@ -77,12 +77,12 @@ public class SpiralSpinner extends Spinner { } else if (down && index == SIZE - 2) { rotatePointAroundCenter(points[SIZE - 1], DELTA); } - } + //} rotatePointAroundCenter(points[index], DELTA); return points[index]; } - private static void rotatePointAroundCenter(double[] point, double beta) { + private void rotatePointAroundCenter(double[] point, double beta) { double angle = Math.atan2(point[1] - Options.height / 2, point[0] - Options.width / 2); double rad = Utils.distance(point[0], point[1], Options.width / 2, Options.height / 2);