[ODE] ODE freezes, can you help?

Martin C. Martin martin at metahuman.org
Mon Dec 16 15:50:02 2002


- What line is it crashing on?
- What values of what fields of what structures are involved in the crash?

One of the big advantages of an open source engine is source level
debugging.

- Martin

> Ivan Bolcina wrote:
> 
> Hi. I create  "dJointCreateContact" by hand. Sometimes works just fine,
> sometimes it crashes application. Am I initializing structures wrongly?
> Or what??
> 
> 
> 
> dContact contact;        //contact
> contact.surface.mode = dContactBounce; //bounce??
> contact.surface.mu = 1;        // ???
> contact.surface.bounce = 0.5f;    //????
> contact.surface.bounce_vel = 0.1f;/????
> convertVector(diff,contact.geom.normal);  // copy DirectX D3DXVECTOR3 to
> dVector3, normal
> convertVector(m_Position-diff,contact.geom.pos);    //copy DirectX
> D3DXVECTOR3 to dVector3,position
> D3DXVECTOR3 spe=move-tmp->move; //approximal depth calculation
> len=D3DXVec3Length(&spe);
> len*=app->getElapsedTime();
> contact.geom.depth=5+len;
> contact.geom.g1=this->PhyGeom;        // assign Geom of first body
> contact.geom.g2=tmp->PhyGeom;    //assign Geom of second body
> dJointID c = dJointCreateContact
> (app->world,app->contactgroup,&contact);    // create join
> dJointAttach (c,this->PhyBody,tmp->PhyBody);        // add it