Cleanup
Managed to cleanup the collision code a good amount. Could remove some ifs which made it easier to read. As well as put some things into (inline) functions. I am pretty curious now how much I could speed this code up with SIMD instructions. Since I don’t want to spend a lot of memory on saving all the points of a tile in the tilemap. So the points and the normals need to be calculated during runtime to reduce the memory footprint. However I think I want to focus on other stuff first before working on collision again. It has been long enough you know.

Last modified: November 15, 2022