[ODE] problems with Geom without body in debug mode

Sergey Beloshitsky sergey at rostok-games.com.ua
Mon Jan 24 12:29:53 MST 2005


Jean-philippe neuser wrote:

>If u want to create static object 
>Dont use body 
>Dont use setgeombody
>Dont use all setbody... fct but use 
>But use all Setgeom... fct 
>
>  
>
so how in my near callback i will know that one of  geoms is static? I 
need to know this to pass 0 to

dJointAttach function 



>
>-----Message d'origine-----
>De : ode-bounces at q12.org [mailto:ode-bounces at q12.org] De la part de Sergey Beloshitsky
>Envoyé : vendredi 21 janvier 2005 15:44
>À : ode at q12.org
>Objet : [ODE] problems with Geom without body in debug mode
>
>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