public float GetHeight(float x, float z) { var point = PhysicsUtils.GetGroundPosition(new Vector3(x / rate, 1000.0f, z / rate)); return(point.y * rate); }