Increase animation speed and reduce armourstand amount

This commit is contained in:
Sam 2017-08-31 20:46:17 +01:00 committed by cnr
parent a1cca83394
commit df01074451

View File

@ -38,7 +38,7 @@ public class WinEffectTornado extends WinEffectGadget
{
private static final double THETA_MAX = 2 * Math.PI * 6;
private static final double THETA_INCREMENTATION = Math.PI / 10;
private static final double THETA_INCREMENTATION = Math.PI / 8;
private static final int ARRAY_SIZE = (int) (THETA_MAX / THETA_INCREMENTATION) + 1;
private static final double DELTA_Y = 0.5 / (2 * Math.PI);
private static final double DELTA_R = DELTA_Y / 4;
@ -106,10 +106,10 @@ public class WinEffectTornado extends WinEffectGadget
AnimatorEntity animator = new AnimatorEntity(Manager.getPlugin(), _npc.getEntity().getBukkitEntity());
animator.addPoint(new AnimationPoint(10, new Vector(0, 0, 0), new Vector(-1, 0.3, 0)));
animator.addPoint(new AnimationPoint(20, new Vector(0, 0, 0), new Vector(0, 0.3, -1)));
animator.addPoint(new AnimationPoint(30, new Vector(0, 0, 0), new Vector(1, 0.3, 0)));
animator.addPoint(new AnimationPoint(40, new Vector(0, 0, 0), new Vector(0, 0.3, 1)));
animator.addPoint(new AnimationPoint(5, new Vector(0, 0, 0), new Vector(-1, 0.3, 0)));
animator.addPoint(new AnimationPoint(10, new Vector(0, 0, 0), new Vector(0, 0.3, -1)));
animator.addPoint(new AnimationPoint(15, new Vector(0, 0, 0), new Vector(1, 0.3, 0)));
animator.addPoint(new AnimationPoint(20, new Vector(0, 0, 0), new Vector(0, 0.3, 1)));
animator.setRepeat(true);
_animator = animator;