[Odejava] Issue #3 enhancements implemented

Ladies and Gentlemen, I give you…

http://odejava.org/demo/MultiGeomSupport.jpg

Multi-Geom (GeomTransform) Support ;D

(those two boxes are seperate GeomBoxs attached to the same body, there are no joints)

Example code:


        Body boxBody = new Body("box", world);
        
        GeomBox a = new GeomBox(4f, 4f, 4f);
        boxBody.addGeom(a);
        
        GeomBox d = new GeomBox(6f, 1f, 1f);
        GeomTransform dt = new GeomTransform();
        dt.setEncapsulatedGeom(d);
        boxBody.addGeom(dt);
        d.setPosition(new Vector3f(0.1f,3f,2f));

Will.

Clap Clap Clap…

Great… As soon as i finish the XODEJoint i’m working on I’ll update and try the new code :wink:

Thanks :slight_smile:

An update - Odejava now does the transform matrix calculations itself rather than relying on the graphics library to do it.

now there are no more pending todo items on this :slight_smile: Next up - XODE parser completion :slight_smile:

Will.

BUG REPORT

I noticed that the value returned by getNativeAddr() on a GeomTransform object was always zero. I believe this is due to the missing call to updateNativeAddr() in GeomTransform 's constructor. I fixed it and now it works correctly

BTW, I noticed that the call to updateReference() is missing too but I do not know whether it is needed or not

Anyway, great work :slight_smile:

bye
Paolo

Hi,

Thanks, I’ve made those changes now too.

Will.