Collision Detection in C++

Hello,

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");

PandaCollide->add_solid(PandaWrap);
	
pandaActor.attach_new_node(PandaCollide);
	
Knocker = new CollisionHandlerQueue();
	
Traverser = new CollisionTraverser("Traverse");
	
Traverser->add_collider(PandaCollide,Knocker);

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

Much thanks,

Brian

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.