[ODE] dGeomTransform; no collision happening
Matthews, Steve USA
swmatthe at nps.navy.mil
Fri May 2 17:02:01 2003
Somebody please help....
I do the following:
*********
dWorldID worldID = dWorldCreate(0);
dSpaceID spaceID = dHashSpaceCreate(0);
dGeomID sGeomID = dCreateSphere(0, 1.3);
dGeomSetBody(sGeomID, 0);
dGeomID tGeomID = dCreateGeomTransform(0);
dGeomTransformSetGeom(tGeomID,sGeomID);
dGeomSetBody(tGeomID, 0);
dBodyID bodyID = dBodyCreate(worldID);
dSpaceAdd(spaceID, tGeomID);
dGeomSetBody(tGeomID, bodyID);
**********
There's a lot more in between, and the dGeomSetBody setting to a 0 body is generic in my code. When I do the above, my sphere falls through my ground plane, but if I do the dGeomSetBody (and dSpaceAdd) on sGeomID, I have no problems.
Are there any known problems to dGeomTransform that aren't apparent from the user docs? Can anyone see anything blatantly wrong above?
Thanks for any help,
Bootshine