Posted January 07, 2021 by rayblade
#raylib #devlog #platformers #vertical collision detection #gravity
OK, i've messed up with some vertical collision where the case is
when i put some box/platform above another platform e.g in the video we see BOX 5 is above BOX 1
the player will fall when stepping into X coordinates where BOX 5 and BOX 1 intersects
these occurs because when im checking for vertical collision i did it form BOX 1, BOX 2,..to BOX 5 with x coordinates
so to fix these i do it in reverse manner where im checking vertical collision from highest box
just reversing the iteration code, and it works