Idea for implementing explosions

Yeah, I have yet to try using this for lighting purposes, which would involve running it once per frame per lighting object. I think, especially if you cap the number of shape queries, it should run quite fast.
The game "Gish" did this, didn't it? I guess we're a little bit behind on times :p
Yes, though Gish likely did it with volume shadow things which don't actually need those extreme points.
I think there's some changes that should be made if you are only using this for drawing purposes... for that i think it would be best to find the max/min points and angles of each convex shape, and then just use those without intermediate raytraces. I think if it was just for drawing lighting occlusion we wouldnt need any raytracing at all.
dc443 wrote:I'll post the code once I'm reasonably sure there's no bugs.


Even an early post so I could snatch it up would be great, bugs and all. 🙂
Well it really isn't polished up but as far as I can remember there aren't any terrible bugs. Once you can get it working, that is...

I just attached the file, you are going to need to take out anything relating to debug drawing or that last argument in the function.

I didn't want to post it yet since it's really freaking ugly and i haven't gone back to work on it yet. But this is what i have so far. I hope it helps in some way.

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