How does a game know the ball just hit the paddle? Our new tutorial walks through collision detection for points, rectangles, and circles, then pushes overlapping things apart and bounces them:
Here’s the playground from the article. Drag the shapes around and watch them turn red when they overlap: