# Implementing Shiffman Box 2D Library For p5js

**URL:** <https://discourse.processing.org/t/implementing-shiffman-box-2d-library-for-p5js/21676>\
**Category:** Libraries\
**Created:** [June 8, 2020, 3:01pm UTC](https://discourse.processing.org/t/implementing-shiffman-box-2d-library-for-p5js/21676 "2020-06-08T15:01:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 8, 2020, 5:18pm UTC](https://discourse.processing.org/t/implementing-shiffman-box-2d-library-for-p5js/21676/5 "2020-06-08T17:18:54Z")

</div>

BtW, I also did a Matter.js sketch, but only for canvas bouncing: 🏐

> [@Sketch with classes implementation in a Reactjs project](https://discourse.processing.org/t/sketch-with-classes-implementation-in-a-reactjs-project/17358/5):
>
> Well, it took a couple of days for me to learn enough Matter.js in order to change my “Bouncing Colorful Balls” sketch to rely on it instead for all movement & bouncing. The file “sketch.mjs” can pass around both the World & p5 instance references to the files “ball.mjs” & “addCanvasWalls.mjs”! Maybe you can find out a way to adapt the “technique” to your own React.js components. Here’s the complete browser-runnable code: And some extras which run 2 & 4 instances of it in the same page: …

https://glitch.com/embed/#!/embed/matter-js-bouncing-colorful-balls?path=sketches/global.mjs&previewSize=0&sidebarCollapsed=true

---

_[View the full topic](https://discourse.processing.org/t/implementing-shiffman-box-2d-library-for-p5js/21676)._
