From 095228144ad2a15c07475de98d74767f34f31aed Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 4 Jul 2025 10:20:10 +0200 Subject: [PATCH] =?UTF-8?q?Se=20comentaron=20l=C3=ADneas=20de=20depuraci?= =?UTF-8?q?=C3=B3n=20en=20el=20archivo=20BEPU=20para=20mejorar=20la=20legi?= =?UTF-8?q?bilidad=20y=20evitar=20la=20salida=20innecesaria=20de=20informa?= =?UTF-8?q?ci=C3=B3n=20durante=20la=20ejecuci=C3=B3n.=20Estos=20cambios=20?= =?UTF-8?q?no=20afectan=20la=20l=C3=B3gica=20del=20programa,=20pero=20opti?= =?UTF-8?q?mizan=20el=20rendimiento=20al=20reducir=20el=20ruido=20en=20los?= =?UTF-8?q?=20registros=20de=20depuraci=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Simulacion/BEPU.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Simulacion/BEPU.cs b/Simulacion/BEPU.cs index f11fd1f..d5098b8 100644 --- a/Simulacion/BEPU.cs +++ b/Simulacion/BEPU.cs @@ -278,7 +278,7 @@ namespace CtrEditor.Simulacion { _simulation.Bodies.Remove(BodyHandle); _bodyCreated = false; // Marcar como no creado después de remover - System.Diagnostics.Debug.WriteLine($"[simBase.RemoverBody] ✅ Body eliminado: {BodyHandle}"); + //System.Diagnostics.Debug.WriteLine($"[simBase.RemoverBody] ✅ Body eliminado: {BodyHandle}"); } //else //{ @@ -2487,7 +2487,7 @@ namespace CtrEditor.Simulacion // Esto se ejecuta cada 10 frames para eficiencia if (_frameCount % 10 == 0) { - StopMotorsForBottlesNotInContact(); + //StopMotorsForBottlesNotInContact(); } // ✅ CONSERVAR - sistemas que funcionan bien @@ -2774,7 +2774,7 @@ namespace CtrEditor.Simulacion // Verificar que la dirección tangencial apunte en el sentido correcto según la velocidad de la curva if (curve.Speed < 0) { - tangentDirection = -tangentDirection; + //tangentDirection = -tangentDirection; } //System.Diagnostics.Debug.WriteLine($"[CalculateCurveDirectionFromBottlePosition] 📐 Dirección calculada:"); @@ -3185,7 +3185,7 @@ namespace CtrEditor.Simulacion { if (botella != null && Cuerpos.Contains(botella)) { - System.Diagnostics.Debug.WriteLine($"[RemoveMarkedBottles] 🗑️ Marcando botella para eliminación: {botella.BodyHandle}"); + //System.Diagnostics.Debug.WriteLine($"[RemoveMarkedBottles] 🗑️ Marcando botella para eliminación: {botella.BodyHandle}"); // ✅ USAR ELIMINACIÓN DIFERIDA (más seguro) Remove(botella);