Class AnimatedBallEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.AnimatedBallEffect
All Implemented Interfaces:
Runnable

public class AnimatedBallEffect extends Effect
Creates an animated Sphere.. Thanks to the author for sharing it! Demo on YouTube
Author:
Qukie
  • Field Details

    • particles

      public int particles
      Ball particles total (150)
    • particlesPerIteration

      public int particlesPerIteration
      The amount of particles, displayed in one iteration (10)
    • size

      public float size
      Size of this ball (1)
    • xFactor

      public float xFactor
      Factors (1, 2, 1)
    • yFactor

      public float yFactor
      Factors (1, 2, 1)
    • zFactor

      public float zFactor
      Factors (1, 2, 1)
    • xOffset

      public float xOffset
      Offsets (0, 0.8, 0)
    • yOffset

      public float yOffset
      Offsets (0, 0.8, 0)
    • zOffset

      public float zOffset
      Offsets (0, 0.8, 0)
    • xRotation

      public double xRotation
      Rotation of the ball.
    • yRotation

      public double yRotation
      Rotation of the ball.
    • zRotation

      public double zRotation
      Rotation of the ball.
    • step

      protected int step
      Internal Counter
  • Constructor Details

    • AnimatedBallEffect

      public AnimatedBallEffect(EffectManager effectManager)
  • Method Details

    • reset

      public void reset()
      Description copied from class: Effect
      Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.
      Overrides:
      reset in class Effect
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect