[ODE] -- dAreConnected, doesn't work with Contacts ??

Andrzej Szombierski qq at kuku.eu.org
Wed Aug 31 14:31:47 MST 2005


On Wed, 31 Aug 2005, Cristian Bianchi wrote:

> Hi,
> take a look at your simulation loop...
> you should have something like this...
> 
> dSpaceCollide(....);
> dQuickStep(.....); // or WorldStep, ....
> dJointGroupEmpty(contactGroup);
> 
> I think the problem is that the last statement "dJointGroupEmpty" destroys
> all contact joints you created in the nearCallback...
> You must use a  different approach... for example in the nearCallback,
> register in a list, or in an array, all the contacts between interesting
> objects.

Or simply move dJointGroupEmpty to the beginning of the code (just before 
dSpaceCollide).

-- 
:: Andrzej Szombierski :: qq at kuku.eu.org :: http://kuku.eu.org ::
:: anszom at bezkitu.com  :: radio bez kitu :: http://bezkitu.com ::



More information about the ODE mailing list