[ODE] collion body vs geom

Tom De Muer tom.demuer at skynet.be
Sat Jan 10 17:35:05 MST 2004


Hi Samuel,

: Thanks Konstantin,
:
: You are right, so  is there a simple solution to achieve what I'd like to
: do.


You could use the dGeomSetData() and add flags/pointers to struct to your
geometry.

Cheers,
Tom

:
: Samuel.
: ----- Original Message -----
: From: "slipch" <slipch at gsc-game.kiev.ua>
: To: <ODE at q12.org>
: Sent: Saturday, January 10, 2004 9:49 AM
: Subject: Re: [ODE] collion body vs geom
:
:
: > 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




More information about the ODE mailing list