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);