# How P5.js use the Box2D of Processing?

**URL:** <https://discourse.processing.org/t/how-p5-js-use-the-box2d-of-processing/25272>\
**Category:** Libraries\
**Created:** [November 8, 2020, 4:19am UTC](https://discourse.processing.org/t/how-p5-js-use-the-box2d-of-processing/25272 "2020-11-08T04:19:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoRei](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NeoRei](https://discourse.processing.org/u/NeoRei)\
**Post date:** [November 8, 2020, 4:19am UTC](https://discourse.processing.org/t/how-p5-js-use-the-box2d-of-processing/25272/1 "2020-11-08T04:19:43Z")

</div>

i can’t use the Box2D !Help

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [November 8, 2020, 5:07am UTC](https://discourse.processing.org/t/how-p5-js-use-the-box2d-of-processing/25272/2 "2020-11-08T05:07:39Z")

</div>

Welcome @NeoRei

What do you want to do with Box2D?

Have you considered [matter.js](https://brm.io/matter-js/) as another physics option? I’ve found it works nicely with p5.js. There’s a series of [Coding Train](https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bLh3T_4wtrmVHOrOEM1ig_) videos on the topic, and you can find the source code for those tutorials on GitHub: [GitHub - CodingTrain/p5-matter: Examples combing p5.js and matter.js](https://github.com/CodingTrain/p5-matter)

---

<div class="post-metadata">

**Author:** ![NeoRei](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NeoRei](https://discourse.processing.org/u/NeoRei)\
**Post date:** [November 8, 2020, 5:22am UTC](https://discourse.processing.org/t/how-p5-js-use-the-box2d-of-processing/25272/3 "2020-11-08T05:22:27Z")

</div>

emm,But I learn the Box2D by a book-danielshiffman. but thanks ,i have known P5 can’t use the Box2D now well…
