[ODE] inconsistency between dGeomDestroy and dBodyDestroy
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Thu Dec 15 12:16:06 MST 2005
I think the theory is that we don't want to do a lot of work taking
geoms out of lists when we know that the list is already going away; for
example, in the case of destroying a body.
Cheers,
/ h+
Chris Ledwith wrote:
> Hi,
> I noticed that dGeomDestroy does nothing but call delete on the geom,
> and the geom's destructor calls dSpaceRemove to remove itself from its
> parent space, whereas dBodyDestroy does this sort of management work to
> remove itself from the world, and the body uses a default destructor.
> Also, perhaps dGeomDestroy should manage removing the geom from its
> owner body's list, much like how dBodyDestroy manages the removal of the
> body's geoms' references to itself.
More information about the ODE
mailing list