(mouseX, mouseY)
| 52 | } |
| 53 | |
| 54 | isMouseOver(mouseX, mouseY) { |
| 55 | // Increase the draggable area by checking if the mouse is within a larger radius |
| 56 | return Math.hypot(mouseX - this.x, mouseY - this.y) < dragAreaRadius; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | function connectParticles() { |