Esempio n. 1
0
        public void GetCubeTriangles(CubeId cubeId, List <MyNavigationTriangle> trianglesOut)
        {
            MyGridNavigationMesh mesh = null;

            if (mesh != null)
            {
                mesh.GetCubeTriangles(cubeId.Coords, trianglesOut);
            }
        }
Esempio n. 2
0
 public override bool Equals(object obj)
 {
     if (obj is CubeId)
     {
         CubeId other = (CubeId)obj;
         return(other.Grid == this.Grid && other.Coords == this.Coords);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 3
0
        public void GetCubeTriangles(CubeId cubeId, List <MyNavigationTriangle> trianglesOut)
        {
            MyGridNavigationMesh gridMesh = null;

            Debug.Assert(m_navigationMeshes.TryGetValue(cubeId.Grid, out gridMesh), "Navigation mesh missing for a grid");
            if (gridMesh == null)
            {
                return;
            }

            gridMesh.GetCubeTriangles(cubeId.Coords, trianglesOut);
        }
        public void GetCubeTriangles(CubeId cubeId, List<MyNavigationTriangle> trianglesOut)
        {
            MyGridNavigationMesh gridMesh = null;
            Debug.Assert(m_navigationMeshes.TryGetValue(cubeId.Grid, out gridMesh), "Navigation mesh missing for a grid");
            if (gridMesh == null) return;

            gridMesh.GetCubeTriangles(cubeId.Coords, trianglesOut);
        }