[ODE] Only setting surface params for contacts actually generated

Aras Pranckevicius nearaz at interamotion.com
Fri Feb 6 20:21:06 MST 2004


> The question is, does dCollide() use any of the data that you set? 
>  If not, the second method should work, and saves a little overhead 
> (as well as being less code).  I've tried it this way, and it seems 
> to behave identically.

As far as my memory tells, no, it does not read the supplied array. In fact, 
it gets only a typed+strided portion of contact's "geom" field, and even in 
theory should not write to other fields.

So your 2nd approach should work ok.


Aras Pranckevicius aka NeARAZ
http://www.gim.ktu.lt/nesnausk/nearaz/




More information about the ODE mailing list