Implementing Shiffman Box 2D Library For p5js

Hello, I recently watched the nature of code video on the box2d library, and it looks very useful! I am having quite the tough time setting up the library for p5js (I am trying to use shiffman’s library). Is this library: (https://github.com/shiffman/Box2D-for-Processing) not compatible with p5js? I feel like I’m doing something wrong and I would love to be pointed in the right direction.

thanks!
Noah

That lib is for Processing …

There are some google search results of users implementing it in .js.

At a glance this one seems promising …

Another option would be to use matter.js.

2 Likes

Ah matter js looks like a pretty good alternative

Thanks
Noah

Another 1 is Toxic: :snake:

2 Likes

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