public Disparo(TgcMesh unModelo, Matrix matrixRot) { TestDisparo = new TgcBox(); TestDisparo.setPositionSize(unModelo.Position, unModelo.Scale); if (unModelo.AutoTransformEnable) { TestDisparo.rotateX(unModelo.Rotation.X); TestDisparo.rotateY(unModelo.Rotation.Y); TestDisparo.rotateZ(unModelo.Rotation.Z); } else { TestDisparo.AutoTransformEnable = false; TestDisparo.Transform = matrixRot; } EnJuego = true; TiempoDeVida = 4f; Duracion = 1f; Intensidad = 1; Velocidad = 300f; }