I'm not sure about your math. Like why are you calculating angles? To see if a point is inside a circle...   // assumes x and y coords are the center const dx = Math.abs(cursor.x - bubble.x); const dy = Math.abs(cursor.y - bubble.y); if (dx > attractRadius || dy > attractRadius) { // not inside }   Here's how I'd do it. The bubbles aren't animating, but it makes no difference. It will work the same.   See the Pen ae04f1f23935e7d7a13c823d614
    • Thanks
    • Like
    5