diff --git a/javascript/PhysicsEngine/main.js b/javascript/PhysicsEngine/main.js index c8c0667..f21af86 100644 --- a/javascript/PhysicsEngine/main.js +++ b/javascript/PhysicsEngine/main.js @@ -104,6 +104,7 @@ function calculate(dt, t) { if (collPoly === polygon) { continue; } + let result = polygon.testCollision(collPoly, ctx); if (result == false) { continue;