Ejemplo n.º 1
0
 public void renderObjects()
 {
     foreach (DictionaryEntry e in objects)
     {
         objects.Get(e.Key).renderPartes();
     }
 }
Ejemplo n.º 2
0
        public void setPos(float px, float pz)
        {
            if (pos.X < px)
            {
                while (pos.X < px)
                {
                    pos.X += step;
                    TraslateX(step);
                }
            }
            else
            {
                while (pos.X > px)
                {
                    pos.X -= step;
                    TraslateX(-step);
                }
            }

            if (pos.Z < pz)
            {
                while (pos.Z < pz)
                {
                    pos.Z += step;
                    TraslateZ(step);
                }
            }
            else
            {
                while (pos.Z > pz)
                {
                    pos.Z -= step;
                    TraslateZ(-step);
                }
            }
            foreach (DictionaryEntry e in parts)
            {
                parts.Get(e.Key).Position = pos;
            }
        }