[ODE] dGeomMoved hook
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Sun Oct 14 09:35:36 MST 2007
This is a good idea.
I don't think this should be per geom, because you may have many geoms
for a single body. The logical place to put it is on the body. Geoms
without a body don't move at all.
Cheers,
/ h+
Daniel K. O. wrote:
> Hello everybody.
>
> I have a lot of bodies distributed through a big world; most of them are
> disabled most of the time, which is good. But at every frame I had
> iterate through them all, to update the 3D engine scene graph.
>
> I could not find any way to iterate only through the moved geoms, so I
> created a function:
>
> dGeomSetMovedCallback(dGeomID, void (*callback)(dGeomID));
>
> I submited a patch here:
> http://sourceforge.net/tracker/index.php?func=detail&aid=1813079&group_id=24884&atid=382801
>
>
> Please let me know if there's any problem (in particular with nested
> spaces, I didn't do extensive tests with it).
>
>
> Thanks
>
More information about the ODE
mailing list