Hi everyone,
this day I’ve been working hard on XPAL (Xith3D Physics Abstraction Layer, for those who don’t follow) and I came accross the problem of having a Body with multiple shapes.
As I see it, it could be done in several ways (classified in order of increasing coolness) :
- I remember there was a fixed Joint in ODE but that would require multiple bodies, would be needlessly slow, and probably unstable.
- By hand, the Body refers to nothing, and the users just detect collisions for the Geoms he wants, then update the pos/rot of the Geoms from the pos/rot of the Body
- By having a list of Geoms referred in Body instead of just one. But that would require that the Geom have two position/rotation : one position/rotation relative to the body (which doesn’t change with stepping), and another absolute (world coordinate, is updated each step with the Body’s own position/rotation)
- By simply using a Space, but that would also require that the Geom have two position/rotation (relative to Space pos/rot, and world coord).
The solution I prefer is the last one (Space), but it needs changes in JOODE to be implemented.
So, JOODE devs (thomas, arne, …) what do you think about that ?