示例#1
0
    public int getHeight(int x, int z)
    {
        float height;

        lock (heightNoise) {
            height = heightNoise.GetNoise(x, z) * _maxMountainHeight + _offset;
        }
        return((int)height);
    }
示例#2
0
    private int GetIslandHeight(int x, int z)
    {
        float height = islandNoise.GetNoise(x, z) * 50;

        return((int)height + 20);
    }
示例#3
0
    private int GetTerrainHeight(int x, int z)
    {
        float height = terrainNoise.GetNoise(x, z) * 10;

        return((int)height + 20);
    }