Hi all!
I have an object that i want to place on a random point over a terrain page. What am i doing?
public void placeFlag() {
float x = 45 + FastMath.nextRandomFloat() * 130;
float z = 45 + FastMath.nextRandomFloat() * 130;
float y = tb.getHeight(x, z);
localTranslation.x = x;
localTranslation.y = y;
localTranslation.z = z;
}
But the Y axis value is not what i want. I want correct point height. Because i am using a HillHeightMap, the tb.getHeight(x,z) give me the greatest height.
Any idea?