Tesi Robotica V+ Sim: Interprete Command Language e... | Page 100

foreach (ModelMeshPart modmeshpart in modmesh.MeshParts) modmeshpart.Effect = mfx.Clone(graphics.GraphicsDevice); giunti.Add(new Giunto(0, Vector3.Zero, Vector3.Zero, 0, 0, new Vector3(0,0,1))); giunti[0].Mesh = myModel.Meshes[0]; giunti[0].Giunto_Precedente = null; giunti.Add(new Giunto(1, Vector3.Zero, new Vector3(0, 1, 0), 0, 360, new Vector3(0, 1, 0))); giunti[1].Mesh = myModel.Meshes[1]; giunti[1].Giunto_Precedente = giunti[0]; giunti.Add(new Giunto(2, new Vector3(0, 335, 75), new Vector3(1, 0, 0), -90, 90, new Vector3(1, 0, 0))); giunti[2].Mesh = myModel.Meshes[2]; giunti[2].Giunto_Precedente = giunti[1]; giunti.Add(new Giunto(3, new Vector3(0, 605, 75), new Vector3(1, 0, 0), -45, 45, new Vector3(0, 1, 1))); giunti[3].Mesh = myModel.Meshes[3]; giunti[3].Giunto_Precedente = giunti[2]; giunti.Add(new Giunto(4, new Vector3(0, 695, 75), new Vector3(0, 0, 1), 0, 360, new Vector3(1, 1, 0))); giunti[4].Mesh = myModel.Meshes[4]; giunti[4].Giunto_Precedente = giunti[3]; giunti.Add(new Giunto(5, new Vector3(0, 695, 360), new Vector3(1, 0, 0), -90, 90, new Vector3(1, 0, 1))); 99