# How does a game know the ball hit the paddle?

**URL:** <https://forum.kirupa.com/t/how-does-a-game-know-the-ball-hit-the-paddle/684191>\
**Category:** web dev\
**Created:** [November 27, 2026, 9:07am UTC](https://forum.kirupa.com/t/how-does-a-game-know-the-ball-hit-the-paddle/684191 "2026-11-27T09:07:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 27, 2026, 9:07am UTC](https://forum.kirupa.com/t/how-does-a-game-know-the-ball-hit-the-paddle/684191/1 "2026-11-27T09:07:51Z")

</div>

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:

> **[Collision Detection in JavaScript: Rectangles and Circles](https://www.kirupa.com/animations/collision_detection.htm)**
>
> Learn collision detection in JavaScript: check points, rectangles, and circles for overlap, then push shapes apart, bounce them, and test lots of them fast.

Here’s the playground from the article. Drag the shapes around and watch them turn red when they overlap:

https://www.kirupa.com/animations/examples/collision_playground.htm
