[ODE] collion body vs geom

slipch slipch at gsc-game.kiev.ua
Sat Jan 10 10:49:13 MST 2004


Hello Samuel,

Friday, January 9, 2004, 5:41:00 PM, you wrote:

sg> Hi,

sg> I want to exclude collision betwen one dBodyID and one dGeomID.
sg> I wrote that but don't work in nearcallback :

sg> dBodyID b1 = dGeomGetBody(o1);
sg> dBodyID b2 = dGeomGetBody(o2);

sg> if(b1==body[1] && o2==wall ) return ;
sg> if(o1==wall &&  b2==body[1] ) return ;

sg> Any ideas, I must miss something.

sg> Thanks for any help.

sg> Sam

This may not work if geometry transforms or hierarchical spaces
(geometry groups) were used.

-- 
Best regards,
 Konstantin Slipchenko                            mailto:slipch at gsc-game.kiev.ua



More information about the ODE mailing list