Class WaterHeightGenerator

java.lang.Object
com.ardor3d.extension.effect.water.WaterHeightGenerator
All Implemented Interfaces:
HeightGenerator

public class WaterHeightGenerator extends Object implements HeightGenerator
Sample implementation of a water height generator.
  • Constructor Details

    • WaterHeightGenerator

      public WaterHeightGenerator()
  • Method Details

    • getHeight

      public double getHeight(double x, double z, double time)
      Description copied from interface: HeightGenerator
      How to animate/set heights on a grid
      Specified by:
      getHeight in interface HeightGenerator
      Parameters:
      x - x position to get height for
      z - z position to get height for
      time - time to get height for
      Returns:
      height for specified position
    • getScalexsmall

      public double getScalexsmall()
    • setScalexsmall

      public void setScalexsmall(double scalexsmall)
    • getScaleysmall

      public double getScaleysmall()
    • setScaleysmall

      public void setScaleysmall(double scaleysmall)
    • getScalexbig

      public double getScalexbig()
    • setScalexbig

      public void setScalexbig(double scalexbig)
    • getScaleybig

      public double getScaleybig()
    • setScaleybig

      public void setScaleybig(double scaleybig)
    • getHeightsmall

      public double getHeightsmall()
    • setHeightsmall

      public void setHeightsmall(double heightsmall)
    • getHeightbig

      public double getHeightbig()
    • setHeightbig

      public void setHeightbig(double heightbig)
    • getSpeedsmall

      public double getSpeedsmall()
    • setSpeedsmall

      public void setSpeedsmall(double speedsmall)
    • getSpeedbig

      public double getSpeedbig()
    • setSpeedbig

      public void setSpeedbig(double speedbig)
    • getOctaves

      public int getOctaves()
    • setOctaves

      public void setOctaves(int octaves)
    • getMaximumHeight

      public double getMaximumHeight()
      Specified by:
      getMaximumHeight in interface HeightGenerator