Class CylinderEffect

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

public class CylinderEffect extends Effect
  • Field Details

    • radius

      public float radius
      Radius of cylinder
    • height

      public float height
      Height of Cylinder
    • angularVelocityX

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

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

      public double angularVelocityZ
      Turns the cube by this angle each iteration around the z-axis
    • rotationX

      public double rotationX
      Rotation of the cylinder
    • rotationY

      public double rotationY
      Rotation of the cylinder
    • rotationZ

      public double rotationZ
      Rotation of the cylinder
    • particles

      public int particles
      Particles in each row
    • enableRotation

      public boolean enableRotation
      True if rotation is enable
    • solid

      public boolean solid
      Toggles the cylinder to be solid
    • step

      protected int step
      Current step. Works as counter
    • sideRatio

      protected float sideRatio
      Ratio of sides to entire surface
    • orient

      public boolean orient
      Whether or not to orient the effect in the direction of the source Location
  • Constructor Details

    • CylinderEffect

      public CylinderEffect(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
    • calculateSideRatio

      protected void calculateSideRatio()