[ODE] Contact Direction

Rémi Chaignon remi.chaignon at gmail.com
Thu Oct 25 15:42:29 MST 2007


Hi all,

I would like to know how to get the direction vector of a contact.

In the Nearcallback, in the contact loop, I set the contact surface mode to
"dContactFDir1". Once the contact is created, I want to check the position
and the direction of the contact, the position (contacts[i].geom.pos) is
correct, but it seems that the direction (contacts[i].fdir1) hasn't been
set.

What am I doing wrong here? Is that how I can get the direction of the
contact?

Thanks for your help,

Remi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20071025/1d1eadf4/attachment.htm


More information about the ODE mailing list