# Implementing Grid-Based Collision System

**URL:** <https://discourse.processing.org/t/implementing-grid-based-collision-system/3248>\
**Category:** Processing\
**Created:** [September 4, 2018, 12:09pm UTC](https://discourse.processing.org/t/implementing-grid-based-collision-system/3248 "2018-09-04T12:09:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [September 4, 2018, 5:10pm UTC](https://discourse.processing.org/t/implementing-grid-based-collision-system/3248/5 "2018-09-04T17:10:54Z")

</div>

The link below is for a Processing sketch I created which uses a quadtree data structure and allows the user to change the ball (moving object) size and configure some of the quadtree factors.

You might like to try it.  
[QuadTreeDemo](http://lagers.org.uk/zzz/QuadtreeDemo-180904.zip)

It requires the G4P library to be installed, can be done through the Contributions Manager

![10](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/ded501ceb1b093cbf5b7a724fcba96fcac31e069.png)

---

_[View the full topic](https://discourse.processing.org/t/implementing-grid-based-collision-system/3248)._
