[ODE] problems with Geom without body in debug mode

Sergey Beloshitsky sergey at rostok-games.com.ua
Fri Jan 21 16:43:53 MST 2005


Hi, All!

I am new to ODE, so maybe my question have a simple remedy but anyway...

I use Box geometry without a body
dGeomSetBody(m_Geometry->GetGeomID(), 0);
and a Sphere geometry with body
when they collide i must get body to attach joints

dBodyID b2 = dGeomGetBody(o2);
dBodyID b1 = dGeomGetBody(o1);
for(i=0; i<num_contacts; i++)
{
dJointID c = dJointCreateContact(physics->m_World, 
physics->m_ContactGroup,contact+i);
dJointAttach(c,b1,b2);
}

but when i call dGeomGetBody() on Box (geom wihout a body) there are 
mesasage box appears with ODE INTERNALL ERROR (i use bebug mode)

in th documentation i've read that
 > Calling these functions on a non-placeable geom results in a runtime 
error in the debug build of ODE. <
BUT Box is placeable
also in FAQ there were question > How can an immovable body be created? <
and theere was advice to attach geom to 0(zero) body ID

moreower when i use TriMesh with zero body indebug mode all liiks great
so where can be a problem?



Thanks in advance!






-- 
Шукай в телефоні мій слід...



More information about the ODE mailing list