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 › jBox2d questions
Page Index Toggle Pages: 1
jBox2d questions (Read 345 times)
jBox2d questions
Jan 13th, 2009, 11:37am
 
First, is there a version that works with processing 1.0. I use the one http://www.jbox2d.org/processing/ and it seems that it not work probably. Second, is there a way to add fill and stroke color to the shapes and will it run in opengl mode?
Re: jBox2d questions
Reply #1 - Jan 13th, 2009, 12:58pm
 
It is supposed to work, see jbox2d with custom rendering method thread might help you for the second question.
Re: jBox2d questions
Reply #2 - Jan 13th, 2009, 10:34pm
 
As I using eclipse I have to made the sketchBlocks() function public to get it work. To save colors or whatever to a body, there is a setUserData/getUserData function to store an object (a simple Integer for color in my case).
Page Index Toggle Pages: 1