private void creaUnItem(string fileMesh, Vector3 posicion, float rotacion) { var sceneCura = loader.loadSceneFromFile(fileMesh); TgcMesh meshCura = sceneCura.Meshes[0]; meshCura.AutoTransformEnable = true; meshCura.AutoUpdateBoundingBox = true; meshCura.createBoundingBox(); meshCura.Position = posicion; meshCura.rotateX(rotacion); meshCura.Scale = new Vector3(0.5f, 0.5f, 0.5f); meshCura.move(0, 20, 0); //cura.BoundingBox.transform(Matrix.Scaling(new Vector3(0.1f, 3, 0.1f)) * Matrix.Translation(new Vector3(posteDeLuz.Position.X + 33, posteDeLuz.Position.Y, posteDeLuz.Position.Z))); /*Item cura = new Item(this.env.MediaDir, this.env.ShadersDir); * cura.setMesh(meshCura); * cura.setFileNameSound(MediaDir + "MySounds\\PickUp2.wav");*/ items.Add(meshCura); }