bug: overlapped cases
First of all, thanks for your code in JavaScript. It helps me a lot. Thank you :D
However, I want to share some idea about overlapping polygon since it doesn't work well.
Since the original one works well for overlapped rectangles, I am curious about the difference between the original one and yours.
I think the original one might preprocess about collision between walls and blocks.
Since I could not understand the original code JavaScript code, I want to ask if you know or remember the difference.
I found the related parameter in original one called "demo_intersectionsDetected". In this file, it is found. In other file, it is used for visualizing. Also, I finally understand why the algorithm "looks" work well. In my opinion, the visualization of block is executed later than the visualizing light. That's why the interactive playground works well. Thanks :) If you have any extra idea, please let me know. Otherwise, I think you could close the issue. Have a nice day.
I found much clear issue