In this video I look at collisions between convex polygons, including rectangles. A quick examination of AABB (Axis Aligned Bounding Box) followed by SAT (Separated Axis Theorem) and an alternative I don't know the name of. As well as checking for overlap, I experiment with resolving the collisions statically.
Source: https://github.com/OneLoneCoder/Javidx9/blob/master/PixelGameEngine/SmallerProjects/OneLoneCoder_PGE_PolygonCollisions1.cpp
YouTube: https://www.youtube.com/javidx9
https://www.youtube.com/javidx9extra
Discord: https://discord.gg/WhwHUMV
Twitter: https://www.twitter.com/javidx9
Twitch: https://www.twitch.tv/javidx9
GitHub: https://www.github.com/onelonecoder
Patreon: https://www.patreon.com/javidx9
Homepage: https://www.onelonecoder.com