I been stuck on this for a bit and since I'm not too great at math, I am wondering why it's not rotating around the center circle.
Here's a video:
https://www.youtube.com/watch?v=IRa4U2gZLLE
Both of squares seem to be circling a center of their own and end up hitting the first block (looks kind of cool but it's wrong).
I had my all of my code on github but I took it off because it might cause problems with Handmade hero. Here's the code in pasebin,but
before looking, peeking or whatever, I want to let you know that I'm using Linux, SDL by David Kim on Mint Linux (sorry if I'm wrong) and I also try to avoid copying Casey's code so the code is different from the actual source with the almost same concepts (I say almost because I think I'm doing some things wrong).
http://pastebin.com/4BP5NZRL
Thanks!