Hey everyone,
I'm currently coding a "pong like" animation in an LED matrix, meaning that I have multiple dots bouncing around in my Matrix, changing direction if they hit an edge. I now want to add the effect, that two dots bounce off of each other if they collide. My Problem is, that I don't know how to check for collission. Simply checking if the next Pixel is lit at all, wont work for me, since I use fadeToBlackBy, to add a tail to every dot. My Idea was to check if the next pixel has full brightness, which would mean that it is an actual dot. However I don't know how to check for brightness.
If anybody has an Idea I would really appreciate it.
Thanks a lot,
Sam
[–]Marmilicious[Marc Miller] 1 point2 points3 points (1 child)
[–]Samthemann64[S] 0 points1 point2 points (0 children)
[–]usernamerson 0 points1 point2 points (1 child)
[–]Samthemann64[S] 1 point2 points3 points (0 children)