public void renderObjects() { foreach (DictionaryEntry e in objects) { objects.Get(e.Key).renderPartes(); } }
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; } }