JBox2D

nicolasnuzillard's icon

Hello !

Has any one ever tried to make the Java library JBox2d work in mxj ? Does it requiers the use of an IDE such as Eclipse (I hate dealing with IDE and libraries).
Has anyone good results or any way to get start with ?

The idea is to make a kind simple of game engine within MAX.

Thanks

Nico

Mathieu Chamagne's icon

Hi
never tried jbox2d ... but I've been using this Max external a lot, and it's great :
http://charles.bascou.free.fr/box2d/

but nowadays, with Max's jit.phys.* , what would be the advantage of box2d ?...

Mathieu

nicolasnuzillard's icon

I managed to set up eclipse and add the librairies. Now there is a problem with dependancies and the use of maven. Has anyone ever have to deal with this ? I cant include what was made by maven in m'y project. i want to use jbox un ordre to have more control on whats going on. It would be painful to do it by patching. Then i will output a matrix fort the results.

nicolasnuzillard's icon

Is it possible to use jit.phys within mxj knowing that there is no dict object to get the results of a
collision ?

nicolasnuzillard's icon

I could also do something like this (photo), it should work but I'd really like to have everything embeded in the code.

ex1.png
png
Jan M's icon

without knowing the definate answer my guess is you can't. Max-Java is in maintence mode, meaning not actively developed anymore, since before jit.phys.* appeared....

nicolasnuzillard's icon

OK. I could run an mxj external with some jbox2d classes. If anyone is interested I can give the instructions to make it work. If anyone has an other solution to do physics by using some code within max, I would like to know how to do it.
Nicolas.

nicolasnuzillard's icon

Finally I found an other solution which is dyn4j, a JAVA 2D library which is younger than box2d. It is very easy to include in mxj compared to jbox2d. It is entierly made in JAVA and seems to a be a good way to have a game engine as a Max patch controller, which was what I wanted to do when I wrote this post.