[ODE] creating bodies, joints and geoms with 'null' world/space arguments

Jon Watte (ODE) hplus-ode at mindcontrol.org
Wed Oct 18 15:58:38 MST 2006

What happens if I call dBodySetWorld() on a body that is already in 
another world?


          / h+

rod kay wrote:
> Hi,
>    I've modified ODE latest svn code to allow bodies, joints and geoms to be 
> created with null (0) arguments. There are 3 new functions: dBodySetWorld, 
> dJointSetWorld and dGeomSetSpace, which allow these parameters to be set or 
> changed.
>    The idea is to allow creation of these objects, without any knowledge of 
> a 'world' or 'space' to which they might belong. Once so created, other 
> object parameters can be set up, or manipulated, before the object is added 
> to a world or space. In general, the changes should allow a little more 
> flexibility in where/when the creation/set up of objects may take place.
>    I've tested the changes with my own code, and they seem to work alright, 
> although they could probably be made a little more robust.
>    The changes have been useful to my project, and I was wondering if they 
> might be useful for others ?
> regards,
> Rod.
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode

More information about the ODE mailing list