Ladies and Gentlemen, I give you...

Multi-Geom (GeomTransform) Support

(those two boxes are seperate GeomBoxs attached to the same body, there are no joints)
java -cp classes/:xith3d.jar:.:../odejava/classes/ org.odejava.xith3d.test.RunDemo org.odejava.test.simple.MultiGeomTest
Example code:
1 2 3 4 5 6 7 8 9 10
| 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.