Collision Detection in C++


I am trying to create collision detection in C++ using ODE. I have read through the documentation and sample code. However, I have been unsuccessful in locating a solution to Collision Detection.

pandaActor = window->load_model(framework.get_models(),"panda-model");

PandaWrap = new CollisionPolygon(LPoint3f(0, 0, 0), LPoint3f(0, 0, 2),LPoint3f(0, 2, 2), LPoint3f(0, 2, 0));

PandaCollide =  new CollisionNode("panda");

Knocker = new CollisionHandlerQueue();
Traverser = new CollisionTraverser("Traverse");

Is there a callback function for Collision Detection in ODE? If so, what is the procedure in calling it and using it?

Much thanks,


I think you’re trying to combine ODE collisions and Panda3D collisions, but I don’t think they combine. As far as I know, you have to use panda’s collision system for panda3d’s collision, and ODE’s solids to use ODE’s collision system.