We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Processing and Box2D
Page Index Toggle Pages: 1
Processing and Box2D (Read 2751 times)
Processing and Box2D
Feb 8th, 2010, 7:08pm
 
I've written a tutorial and started a library (?) about using Box2D in Processing.

blog post: http://www.shiffman.net/2010/02/08/box2d-and-processing/

tutorial: http://www.shiffman.net/teaching/nature/box2d-processing/

google code: http://code.google.com/p/pbox2d/

Feedback is welcome!!
Re: Processing and Box2D
Reply #1 - Feb 9th, 2010, 4:47am
 
Great!
Re: Processing and Box2D
Reply #2 - Feb 9th, 2010, 6:16am
 
Another great tutorial, thanks a lot D.

rS
Re: Processing and Box2D
Reply #3 - Feb 14th, 2010, 2:50pm
 
And a quick addition, some toxiclibs examples:

http://www.shiffman.net/teaching/nature/toxiclibs/
Re: Processing and Box2D
Reply #4 - Feb 15th, 2010, 2:31pm
 
I only wish you had come out with this a month ago!

I'm a senior at the Cleveland Institute of Art working on my BFA thesis project. I've been wrestling with the BoxWrap2D library, and it does work, for very simple things. But it has frustratingly little documentation, and didn't really have much to say about accessing JBox2D code, and especially not all the way into Box2D.

I think pbox2d will be very helpful!

I just hope I can get something going with this in 2 days... Shocked

I do have one question though - is there a place we can go that lists every pbox2d class and method?
Re: Processing and Box2D
Reply #5 - Feb 15th, 2010, 2:51pm
 
For now, you just have to look at the source.  You can see that PBox2D itself has very little, everything is really part of JBox2D.

http://code.google.com/p/pbox2d/source/browse/trunk/PBox2D/src/pbox2d/PBox2D.java
Re: Processing and Box2D
Reply #6 - Feb 15th, 2010, 2:58pm
 
Thanks!

I actually just found the JBox2D documentation packaged with the download, and I'm pouring through it now.

Questions: Is there any possibility that PBox2D will receive an update that allows for faster creation of bodies? For instance, BoxWrap2D has methods for creating circles and rectangles, i.e. createCircle(). It would be handy not having to write 10 lines of code for simple objects.

On the other hand, it is good to know how to create shapes "from scratch," so you know what's going on under the hood.

Either way, I'm thankful for this library, if you couldn't tell!
Page Index Toggle Pages: 1