[ODE] GeomGroup deprecated...?
Mattias Fagerlund
mattias at cambrianlabs.com
Sat Feb 1 14:06:02 2003
Hi!
I've been updating my DelphiODE wrapper, and it seems that the buggy
demo (test_buggy.cpp) still uses GeomGroups. Since they're to be
replaced by spaces, perhaps it should be updated? That way, we'd have a
demo of spaces doing what GeomGroups used to do.
(from test_buggy.cpp)
// create geometry group and add it to the space
geom_group = dCreateGeomGroup (space);
dGeomGroupAdd (geom_group,box[0]);
dGeomGroupAdd (geom_group,sphere[0]);
dGeomGroupAdd (geom_group,sphere[1]);
dGeomGroupAdd (geom_group,sphere[2]);
I replaced it with this in delphi, and it works fine;
BodySpace = dSimpleSpaceCreate(space);
dSpaceSetCleanup(BodySpace, 0);
dSpaceAdd(BodySpace,box[0]);
dSpaceAdd(BodySpace,sphere[0]);
dSpaceAdd(BodySpace,sphere[1]);
dSpaceAdd(BodySpace,sphere[2]);
cheers,
m