Hi,
Thanks for your answer.
I'm already returning 1.2f to get all intersections, but that's not quite the result I want.
I've made a drawing of what I'm doing:
- ray.jpg (31.05 KiB) Viewed 12041 times
Blue and red are two different bodies.
Right now, here is what I get:
- returning a value <1.0f in the callback gives me intersection 1
- returning a value >1.0f in the callback gives me intersection 1 & 3
However, what I'd like to have, is to get all points 1,2,3,4,5,6, or at least 1,3,4.
I guess I could alter or make a variant of dgBody::RayCast to do more precise ray/collision intersection tests, doing a loop with the ray start position set to the previous intersection position or something like that.