Пример #1
0
 public void loadModel(Model model, Vector3 position)
 {
     this.modelStructItem = new ModelStruct();
     modelStructItem.modelo = model;
     modelStructItem.Translation = position;
     modelStructItem.transforms = new Matrix[modelStructItem.modelo.Bones.Count];
     this.ListModels.Add(modelStructItem);
     this.keyCount++;
     if (!DiccModels.ContainsKey(keyCount))
         this.DiccModels.Add(keyCount, "IDModelo:" + keyCount.ToString());
 }
Пример #2
0
 public void loadModel(Model model, float rotateX, float rotateY, float rotateZ)
 {
     this.modelStructItem = new ModelStruct();
     modelStructItem.modelo = model;
     modelStructItem.Rotation = new Vector3(rotateX, rotateY, rotateZ);
     modelStructItem.transforms = new Matrix[modelStructItem.modelo.Bones.Count];
     this.ListModels.Add(modelStructItem);
     this.keyCount++;
     if (!DiccModels.ContainsKey(keyCount))
         this.DiccModels.Add(keyCount, "IDModelo:" + keyCount.ToString());
 }