Particles and Raycasts?

Hello~

Finally learned how to use subversion, so I could use some of the newer toys in Box2d, especially the raycast and b2segment stuff~ (Which look more than useful, by-the-way! Good stuff!)

Anyways, my question:
I know particle physics isn't something that's going to be in Box2d for quite a while. But I really would like to use particles for what I'm trying to do inside my simulation. Would it be feasible to gerry-rig it so, between each timestep, box2d used the raycast method with every particle to calculate it's destination? The number of particles would probably be, ballparking it, over a thousand. Way over a thousand. I think, eheh.

So can it be done like that? I know I won't know the performance of such a simulation until I actually simulate it, but if you already know the raycast thingy is too costly for it to work like that, it would save me quite a lot of time. I'm still a newbie at this programming thing, so I code at the speed of an iceberg in molasses..

Thanks ahead of time for responding! 8D
What you describe is plausable. As for speed, I don't honestly know, but I can tell you this. I don't think that very short raycasts like that are significantly faster that Box2D's usual collision detection (for spheres). You main speed gain would probably come from avoiding collision handling, if there is any gain to be had.

Original thread: https://box2d.org/forum/viewtopic.php?t=1324