예제 #1
0
    /// <summary>
    /// Returns the water level at given location.
    /// </summary>
    /// <param name="x">x-coordinate</param>
    /// <param name="z">z-coordinate</param>
    /// <returns>Water level</returns>
    private float GetWaterLevel(float x, float z)
    {
//		return ocean == null ? 0.0f : ocean.GetWaterHeightAtLocation(x, z);
        //return 0.0f;
        return(waterLevel.GetYWaterLevel(new Vector3(x, 0, z)));
    }