[ODE] Re: User-defined actions on collision
Russ Smith
russ at q12.org
Fri Nov 2 11:02:29 MST 2001
hi,
> Were you able to get any use out of the Makefile patches I sent you
> to compile ODE as a DLL?
i'll look at it shortly.
> I was wanting to execute some game-specific code when a collision is
> detected between objects (update score, that sort of thing). I was
> wanting to use ODE's built-in collision detection. Where's the best
> place to do this sort of thing? I am thinking about hooking into
> dCollide. Is there a standard way of doing this?
the best place to do it is in the collision callback function. that
function gets passed the IDs of each colliding pair of objects.
you can store your own user-data pointer in each object to help
identify them in your application.
russ.
--
Russell Smith
http://www.q12.org
More information about the ODE
mailing list