odejava/xith3d integration

hi all!

i have a question regarding to the integration of ode in my xith3d app. i’m thinking about having some kind of entity-class which represents an object in the 3d-world. this entity could be a decendant of BranchGroup so an easy integration in the scenegraph would be possible. furthermore the entity would encapsulate the TransformGroup generated by the OdejavaToXith3d-class and it’s appropriate ode-body-object counterpart as well. the initial definition of all simulation relevant body/geom would be done in the odeworld so it’s xith representation could be updated after each simulationstep. gamelogic inside an entity could then apply forces to it’s ode-body if neccessary, to simulate interaction.

sounds this like a reasonable way of doing it or are there easier/better solutions? any help is much appreciated.

thnx in advance,
holger

Sounds good. I trust you will be using the org.odejava.display package to keep the objects in sync? This is strongly recommended. I’ve recently added in a feature where you can mark an ODE Placeable as “fixed” (e.g. a static geom) so doesn’t update the TG every frame (everytime you call setTransform Xith3D has to do many matrix calculations).

Will.

thnx will!
good to know that i’m on the right way. yes, i’m using the org.odejava.display package to keep my objects in sync.

greetings,
holger