fix: Remove duplicate constants and add null check for updatePhysicsObjects

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 17:16:45 +02:00
parent 20f5036848
commit cf64b6db48
3 changed files with 9 additions and 4 deletions

View File

@@ -64,6 +64,11 @@ window.onload = function() {
// Start the simulation loop
requestAnimationFrame(simulationLoop);
// Initialize physics variables
window.physicsUpdateRate = 16; // ms between physics updates
window.lastPhysicsTime = 0;
window.fireUpdateCounter = 0;
};
function resizeCanvas() {