[ODE] Best way to use ODE for collision detection in game level?

gl gl at ntlworld.com
Sun Jun 17 10:38:42 MST 2007


> I am trying to use ODE for collision detection in one of my applications. 
> This application has a map, which consists of several triangle meshes. All 
> in all, there are 18000 triangles. All of these triangles meshes are 
> static and can not move. The only dynamic thing is a collision sphere 
> around the camera.

>From memory, creating just one mesh holding them all is worth a try as 
Opcode will partition them efficiently anyway (although this isn't your main 
problem).

> The triangle meshes are created with: mesh.bodyID = dBodyCreate(odeWorld);

Static colliders shouldn't have bodies, only geoms.
--
gl 



More information about the ODE mailing list