Good Docu for ODEJava

hi

Is there any realy good or maybe just better docu for ODEJava out there, which any ODE noob can understand? I’m playing around with xith3d and got good results so far. But there isn’t any unseful docu for ODEJava. The docu for the native c-library is not useful in all concerns. And the (not so) small examples are very special. I just need an example for a small scene with a cube or a sphere, a floor, a wall an maybe another object to collide. A docu wich tells me, how to code such a scene would be better. Even better was a complete odejava docu.

Does anybody know of something like that?

Qudus

Good question lad !! Actually there isn’t. The ODE docu is helpful when you got started, but before that… Luckily OdeJava is very simple and easy to understand:
There are Bodies, they act moveable.
Geoms represent the Geometry. So by setting a Geom to a Body you give the Body a Shape. If you don’t add the Geom to the Body, the Geom is not moveable.
Joints link two Bodies.

The you’ll have to add the Bodies and not moveable Geoms to a Space (Hashspace) . Then you’ll only have to do this in you rendering loop:


      // this is not in the rendering loop - only to define the variables
            Contact contact;
            JavaCollision collision;
            HashSpace space;
 

     //this is now the part that get's in the rendering loop
            collision.collide(space);

            for (int i=0; i < collision.getContactCount(); i++) {
                contact.setIndex(i);
            }

            // process collisions
            collision.applyContacts();

            world.step();

This is only a quickfix for a nonexistant tutorial. It would be real cool if somebody could take a bit time and write one a bit more detailed.

I have written some as yet unpublished docs, I’ll try and publish them for you.

Will.

Hey, thanks. I would love to see it.

Hi! Sorry for the delay, I have been busy writing some other documentation

Send me an email: will -at- tanksoftware.com and I’ll email you a draft of my ODE doc (not ready to release it publiclly just yet), if you still want it.

Cheers,

Will.

how is the work on your ODE documentation going, Will? you didn’t answer my PM so I guess you’re too busy at the moment?

Sorry yeah I have been busy. If I get a chance I will publish what I have. It’s only basic getting started stuff.

Will.