# Difference between collide and bounce in p5.play

**URL:** https://discourse.processing.org/t/difference-between-collide-and-bounce-in-p5-play/29214
**Category:** Libraries
**Created:** [April 8, 2021, 11:36am UTC](https://discourse.processing.org/t/difference-between-collide-and-bounce-in-p5-play/29214 "2021-04-08T11:36:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edufissure](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@edufissure](https://discourse.processing.org/u/edufissure)
#### Post date: [April 8, 2021, 11:36am UTC](https://discourse.processing.org/t/difference-between-collide-and-bounce-in-p5-play/29214/1 "2021-04-08T11:36:48Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Im trying to implement a ping-pong game or pong, and i ask to myself what is better to use when ball bounces/collides with player…I assume i have to put to the player inamovible = true, so the player cant go back as result of the shoot with the ball.

Thanks
