[ODE] Contact point position in ContactJoint

tsr tsr at fenix.katowice.pl
Fri Aug 10 12:39:56 MST 2007


09-08-2007 10:50 -0300, Daniel K. O.:
> 2007/8/9, tsr <tsr at fenix.katowice.pl>:
> > I want to draw contact points in my simulation. It is possible to get
> > positions of contact points from ContactGroup? How can I get Positions
> > of contact points?
> 
> The dContactGeom struct is:
> 
> struct dContactGeom {
>  dVector3 pos;    // contact position
>  dVector3 normal; // normal vector
>  dReal depth;     // penetration depth
>  dGeomID g1,g2;   // the colliding geoms
> };
> 
> 
> So just use the "pos" field.
> 
> 

It works good. 
I'm creating a list of vectors in nearcallback and after that drawing a
list and clear it.

Thank you all for answer.
Tomasz Wojtyś



More information about the ODE mailing list