[ODE] Collision objects
Erwin de Vries
erwin at vo.com
Sun Apr 28 01:02:02 2002
What we did for explosions was create a static sphere and let it expand over
a few seconds. It is very useful though to use the functionality described
in previous mails for area checking. ODE has optimized scene information. It
would be a real pity if you wouldnt make use of it. The only disadvantage
currently is that even when you specify 0 contacts the collision system
still generates a contact. You can speed this up by optimizing the collision
functions to generate 0 contacts, and simply return true or false. I'm
pretty sure Russ would like to add your changes.
Erwin
----- Original Message -----
From: "Nate W" <coding@natew.com>
To: <ode@q12.org>
Sent: Sunday, April 28, 2002 06:57
Subject: Re: [ODE] Collision objects
> On Sat, 27 Apr 2002 symeg@tcd.ie wrote:
>
> > I have one question though. Is it possible to insert a geometry into
> > the space which will inform you whether objects have collided with it,
> > but not cause any response to the collision? I was thinking that it
> > would be a handy way to check which objects were going to be effected
> > by an explosion.
>
> In the collision callback, you can test the two colliding objects to see
> if one of them is your 'pseudo-object.' If it is, you can return from the
> collision callback without creating any contact joints. Perhaps before
> returning from the callback you could apply some forces to 'push' the
> objects away from the explosion, if that's what you want the explosion to
> do.
>
> It might be computationally cheaper to just compute the distance between
> all of the objects and the point of the explosion, though. Depends on
> your circumstances I guess.
>
> --
>
> Nate Waddoups
> Redmond WA USA
> http://www.natew.com
>
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>
>