Exemplo n.º 1
0
        public void RemeshObject()
        {
            Box3Fill changed = new Box3Fill(true);

            RemeshObject(changed);
            PathStore.Refresh(changed);
        }
        public void RemeshObjects()
        {
            Box3Fill changed = new Box3Fill(true);

            foreach (List <CollisionObject> MOL in MeshedObjectIndexes())
            {
                lock (MOL) foreach (CollisionObject O in new List <CollisionObject>(MOL))
                    {
                        if (O is IMeshedObject)
                        {
                            ((IMeshedObject)O).RemeshObject(changed);
                        }
                    }
            }
            PathStore.Refresh(changed);
        }
Exemplo n.º 3
0
 protected void RemoveCollisions(SimPathStore simPathStore)
 {
     if (simPathStore != PathStore)
     {
         return;
     }
     if (PathStore == null)
     {
         IsSolid = false;
     }
     else
     {
         Box3Fill changed = new Box3Fill(true);
         RemoveFromWaypoints(changed);
         simPathStore.Refresh(changed);
     }
 }