To create physics animations using these programs, you need to know some java.
If you do know java and want to create your own physics animations, all you need to do is follow the steps below.
- Install Processing
- Open processing and create a sketch
- Select the sketch menu, import library, then manage libraries.
- Find “Box2D for Processing” and install it.
- Create a physics render!
- If you want to add more, but don’t know how, check out the docs for processing and the original (c++) box2d.
If you don’t know java, but want to learn it with physics animations, follow these steps:
- Follow the steps above until step 4
- Find the processing folder (usually C:\Users\your_username\Documents\Processing)
- Open it
- Download the demo zip here.
- Extract the zip folder.
- Double click the file named physics_demo.
- Click the triangle in the top of the window to run the demo.
- A screen should open with a display showing something like this. If it doesn’t work, please comment with the problem on this page so that I can improve my guide.
- Experiment with changing variables to learn about how to code in java.
If you create an animation that you really like and want to share it, email me (firstname.lastname@example.org) and I can add it to the generative gallery.