# Interaction between objects and 2D detector?

**URL:** <https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374>\
**Category:** Libraries\
**Created:** [November 7, 2021, 3:04pm UTC](https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374 "2021-11-07T15:04:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [November 8, 2021, 7:47pm UTC](https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374/2 "2021-11-08T19:47:19Z")

</div>

Hi @Timo,

If you want to have 2d physics running in JavaScript with p5js maybe this can help:

> [@Implementing Shiffman Box 2D Library For p5js](https://discourse.processing.org/t/implementing-shiffman-box-2d-library-for-p5js/21676/2):
>
> That lib is for Processing … There are some google search results of users implementing it in .js. At a glance this one seems promising … [https://editor.p5js.org/djuliette/sketches/kj8mQ2wwM](https://editor.p5js.org/djuliette/sketches/kj8mQ2wwM) Another option would be to use matter.js.

You could setup a collider attached on your posenet detection and make it collide with other objects in the canvas.

---

_[View the full topic](https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374)._
