예제 #1
0
    public bool IsTerrainAvailable(IntVector2 GenPos, out Vector3 pos)
    {
        if (!VFDataRTGen.IsDungeonEntranceAvailable(GenPos))
        {
            pos = Vector3.zero;
            return(false);
        }
//		int y = VFDataRTGen.GetPosHeight(GenPos,true);
//
//		pos = new Vector3(GenPos.x,y+4,GenPos.y);
//		RaycastHit hit;
//		if (Physics.Raycast(pos, Vector3.down, out hit, 512, 1 << Pathea.Layer.VFVoxelTerrain))
//		{
//			pos.y = hit.point.y;
//		}else{
//			return false;
//		}
        bool result = RandomDunGenUtil.GetAreaLowestPos(GenPos, 10, out pos);

        return(result);
    }