keii @keii.dev · 23/12/2024implementing collisions and some basic physics is so fun because with some 200 lines of code i can have 20 rotated rectangles collide accurately according to their mass and velocity 110 0
keii @keii.dev · 23/12/2024collisions are done via SAT which is what the messy debug lines show. a much better visualization is this one from a stack overflow question codepen.io/ArthyFiciel/...codepen.ioHow to test Rotated Rects Collision... 120 0
keii @keii.dev · 23/12/2024i also had to speed up the video 1.4x to get under bluesky's 60 second cap so it looks a little funky 010 0