Collision
I managed to get some answers to my collision questions. This shows how important some clean up can be to better understand the code you wrote and eliminate possible errors. Making the code easier to maintain.

I’ve added some debug graphics as well to easier see what is happening. As I encountered the first problem with the old code after changing how you look up tiles. As it was using the chunk position instead of the actual tile position. Not that it actually works again haha. But a start has been made!

Last modified: June 13, 2023