com.jmex.effects.water
Class WaterHeightGenerator
java.lang.Object
com.jmex.effects.water.WaterHeightGenerator
- All Implemented Interfaces:
- HeightGenerator
public class WaterHeightGenerator
- extends java.lang.Object
- implements HeightGenerator
WaterHeightGenerator
Sample implementation of a water height generator
- Author:
- Rikard Herlitz (MrCoder)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WaterHeightGenerator
public WaterHeightGenerator()
getHeight
public float getHeight(float x,
float z,
float 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 forz
- z position to get height fortime
- time to get height for
- Returns:
- height for specified position
getScalexsmall
public float getScalexsmall()
setScalexsmall
public void setScalexsmall(float scalexsmall)
getScaleysmall
public float getScaleysmall()
setScaleysmall
public void setScaleysmall(float scaleysmall)
getScalexbig
public float getScalexbig()
setScalexbig
public void setScalexbig(float scalexbig)
getScaleybig
public float getScaleybig()
setScaleybig
public void setScaleybig(float scaleybig)
getHeightsmall
public float getHeightsmall()
setHeightsmall
public void setHeightsmall(float heightsmall)
getHeightbig
public float getHeightbig()
setHeightbig
public void setHeightbig(float heightbig)
getSpeedsmall
public float getSpeedsmall()
setSpeedsmall
public void setSpeedsmall(float speedsmall)
getSpeedbig
public float getSpeedbig()
setSpeedbig
public void setSpeedbig(float speedbig)
getOctaves
public int getOctaves()
setOctaves
public void setOctaves(int octaves)