Generate ODE objects and create your XIth objects from them
Personally I have an object that binds those two, something like :
1 2 3 4 5 6 7 8 9 10 11 12 13
| interface INode { public void setPosition(); public void setRotation(); }
Class OdeNode { INode node; Body body; public void update() { node.setPosition(body.getPosition()); node.setRotation(body.getRotation()); } } |
Just make different implementations of INode and your ODE specific code will never be mixed up with your rendering code.
So if you want to switch to some other rendering API you can do it in 10 minutes (or in a matter of days still its very fast)