[ODE] TriMesh Collision

Joe Ante joe at uti.is
Sat Jun 12 10:12:02 MST 2004


> Thanks in advance for any help - this is driving me nuts:
> 
> I am getting a segfault whenever a box collides with a trimesh.  The
> actual error is in OpCode, although I am certain it is caused by my code.
> 
> Opcode::OBBCollider::InitQuery(Opcode::OBBCache&, IceMaths::OBB const&,
> IceMaths::Matrix4x4 const*, IceMaths::Matrix4x4 const*) (this=0x8123160,
> cache=@0x8123500, box=@0xbffff1d0, worldb=0x0, worldm=0xbffff180) at
> OPC_Common.h:96
> 
> I have noticed that during the collision callback, dGeomGetBody returns
> 0 for o2.  Should a dGeometBody() be returning 0 for a Trimesh?
If you assigned a body to the geom it does not return 0.

> Thanks again for your time...
> 
> 
> Here is the simplified code:
> float vertices[]=
> {0.0f,1000.0f,0.0f,
>  6000.0f,1000.0f,6000.0f,
>  6000.0f,1000.0f,0.0f};
> 
> float indices[]={0,1,2};
You are using floats as indices. Might not be that great of an idea.

Joe Ante



More information about the ODE mailing list