bool BasicRaycast::userCallback - Walaber plz take a look

nikhil

09-12-2006 19:16:37

Within the BasicRaycast::userCallback if I set "return false;" to "return true;", what is supposed to be the actual change??

The code comments say:-

Newton calls this function for each body intersected by the ray. however it doesn't necessarily go perfect cloest-to-farthest order. return true and the callback will only be called for bodies closer to the start point than the current body.

I'm confused, will it or won't it just return the nearest body with "return true".. I've highlighted the conflicting terms causing the doubt.

regards
nik