[ODE] enhanced ODE collision API

Erwin de Vries erwin at vo.com
Thu Oct 24 16:22:01 2002


Thats not what he ment. I also typed a similar message, and then realized i
didnt get the point. :-) The point David is making is that his dectection
geoms dont need contacts. Just a true/false to determine if they hit.

Erwin

----- Original Message -----
From: "Nate W" <coding@natew.com>
To: <ode@q12.org>
Sent: Thursday, October 24, 2002 17:11
Subject: RE: [ODE] enhanced ODE collision API


> On Fri, 25 Oct 2002, David McClurg wrote:
>
> > one other common concept in collision detection is a ghost or phantom
> > geom used as a sensor.  you don't bounce off it -- you just detect a
> > penetration.  ie: what you want is just detection of the collision and
> > not the contact information.  it would be nice if there was a built-in
> > type called 'sensor' or something that didn't do the extra work of
> > computing the contact point/normal.
>
> Could you do that by filtering out collisions involving the 'sensor' geoms
> in the collision callback?  Like:
>
> int count = dCollide (o1, o2, contacts, &contact[0].geom ...
>
> MyClass *p1 = dGeomGetData (o1);
> MyClass *p2 = dGeomGetData (o2);
>
> if (p1->isSensor)
> p1->CollisionDetected (count, contact)
> if (p2->isSensor)
> p2->CollisionDetected (count, contact)
>
> if (!p1->isSensor && !p2->isSensor)
> {
> // create contact joints
> }
>
> --
>
> Nate Waddoups
> Redmond WA USA
> http://www.natew.com
>
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>
>