//Construtor por copia public Nave(Nave nave) { this.naveModel = nave.naveModel; this.position = new Vector3(var.Next(0, 10), var.Next(0, 10), var.Next(0, 10)); this.World = Matrix.CreateTranslation(position); this.state = nave.state; }
public ResourceManager(ContentManager content) { // TODO: use this.Content to load your game content here nave_model = new NaveModel(content, "Models/Ship1/p1_saucer"); nave_template = new Nave(nave_model); // Variável para carregar o modelo 3d da nave pool = new NavePool <Nave>(10); Vector3 worldPos = new Vector3(0, 0, 0); for (int i = 0; i < pool.Size(); i++) { pool.SetModel(i, nave_model); } }