Class CircleEffect

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

public class CircleEffect extends Effect
  • Field Details

    • orient

      public boolean orient
      Whether or not to orient to the direction of the source location
    • xRotation

      public double xRotation
      Rotation of the torus.
    • yRotation

      public double yRotation
      Rotation of the torus.
    • zRotation

      public double zRotation
      Rotation of the torus.
    • angularVelocityX

      public double angularVelocityX
      Turns the circle by this angle each iteration around the x-axis
    • angularVelocityY

      public double angularVelocityY
      Turns the circle by this angle each iteration around the y-axis
    • angularVelocityZ

      public double angularVelocityZ
      Turns the circle by this angle each iteration around the z-axis
    • radius

      public float radius
      Radius of circle above head
    • maxAngle

      public double maxAngle
      Used to make a partial circle
    • resetCircle

      public boolean resetCircle
      Start at the same location each step, use this along with maxAngle and wholeCircle to form persistent semicircles
    • step

      protected float step
      Current step. Works as a counter
    • xSubtract

      public double xSubtract
      Subtracts from location if needed
    • ySubtract

      public double ySubtract
      Subtracts from location if needed
    • zSubtract

      public double zSubtract
      Subtracts from location if needed
    • enableRotation

      public boolean enableRotation
      Should it rotate?
    • particles

      public int particles
      Amount of particles per circle
    • wholeCircle

      public boolean wholeCircle
      To make a whole circle each iteration
  • Constructor Details

    • CircleEffect

      public CircleEffect(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