Class HelixEffect

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

public class HelixEffect extends Effect
  • Field Details

    • strands

      public int strands
      Amount of strands
    • particles

      public int particles
      Particles per strand
    • radius

      public float radius
      Radius of helix
    • curve

      public float curve
      Factor for the curves. Negative values reverse rotation.
    • rotation

      public double rotation
      Rotation of the helix (Fraction of PI)
    • orient

      public boolean orient
      Whether to orient to the direction of the source location
    • enableRotation

      public boolean enableRotation
      Should it rotate?
    • 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 helix by this angle each iteration around the x-axis
    • angularVelocityY

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

      public double angularVelocityZ
      Turns the helix by this angle each iteration around the z-axis
    • step

      protected float step
      Current step. Works as a counter
  • Constructor Details

  • 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