# 2D rigid body physics in Processing (WIP)

**URL:** <https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808>\
**Category:** Gallery\
**Created:** [November 28, 2021, 8:10pm UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808 "2021-11-28T20:10:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![i-make-robots](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@i-make-robots](https://discourse.processing.org/u/i-make-robots)\
**Post date:** [November 28, 2021, 8:10pm UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808/1 "2021-11-28T20:10:27Z")

</div>

Hello!

I’m building a 2D physics system in Processing and I’m looking for people who’d care to join. I think it could be used to make cool generative stuff, interactive stuff, etc. I can code anything but my math is crummy. I’d love to know who would use this and how, pull requests, issue tickets… you name it. [GitHub - MarginallyClever/processingPhysics: Physics in Processing](https://github.com/MarginallyClever/processingPhysics)

I’m also very interested in how to design a beautiful API that makes it easy to use. Please share your thoughts!

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [November 28, 2021, 8:30pm UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808/2 "2021-11-28T20:30:36Z")

</div>

You do know there is already several libraries that do this. Box2d comes to mind. However i wouldn’t mind helping out i have a 2d shape class already ready to go it already has a lot of shapes and funtions.

---

<div class="post-metadata">

**Author:** ![i-make-robots](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@i-make-robots](https://discourse.processing.org/u/i-make-robots)\
**Post date:** [November 29, 2021, 6:15am UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808/3 "2021-11-29T06:15:18Z")

</div>

I did not know. I have no desire to repeat work if I can avoid it. 🙂 Shame on me for not googling better. I looked for “physics engine java” and didn’t get anything I could work with.

---

<div class="post-metadata">

**Author:** ![i-make-robots](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@i-make-robots](https://discourse.processing.org/u/i-make-robots)\
**Post date:** [November 29, 2021, 7:01pm UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808/4 "2021-11-29T19:01:39Z")

</div>

I showed you mine, let’s see yours and figure out a way to work together 🙂

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [November 30, 2021, 7:57am UTC](https://discourse.processing.org/t/2d-rigid-body-physics-in-processing-wip/33808/5 "2021-11-30T07:57:49Z")

</div>

to begin with Dan has a great playlist for box 2d

https://www.youtube.com/embed/MsRROjQJxuo?feature=oembed&wmode=opaque&list=PLRqwX-V7Uu6Zy4FyZtCHsZc_K0BrXzxfE

this is my old project sketch file its a large project with many other classes.

please note it was back in the day and I havent opened it in a while.

> **[Upload files · paulgoux/OldProject](https://github.com/paulgoux/OldProject/upload/main)**
>
> Contribute to paulgoux/OldProject development by creating an account on GitHub.

you’ll want to use visual studio code to run the sketch as there are too many files and it often crashes processing, again I was very new at coding, Ive since moved on to using eclipse.

> **[GitHub - paulgoux/oldProjectVSCode](https://github.com/paulgoux/oldProjectVSCode)**
>
> Contribute to paulgoux/oldProjectVSCode development by creating an account on GitHub.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dee38884155ac1418bdbc986805e505196aa8ba8.png)  
Also please note there is a slight problem with the complex polygon button. You have to select another item ie line drawing and then select complex polygon.

 ![2021-11-30 08_37_28-Greenshot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/43cab5103d2ac2a09708a904e975ff5f963f770e.jpeg)

However I’m Probably going to be replacing a lot of the functions with my new complex shape class  
[https://openprocessing.org/sketch/1372202](https://openprocessing.org/sketch/1372202)
