Sooooo…. a few days ago I felt like simulating a bit of gravity. Turns out that was the easy part… Basically I wrote a gravity simulator with accurate(?) collision detection all based on force vectors applied over time. I did all the physics and trig work from the top of my head, and the last time I had a physics or trig class was eight years ago, so I might have forgotten something important. Collisions look right to me right now, but the code driving them relies on some pretty loose interpretations of gravity/time, so any frameskips could cause some rather interesting reflections. Tarball (with source) and Ubuntu deb package (binary only) at their respective links.
I made a half-assed attempt at commenting the source, because I’m a nice guy. You should be able to get an idea of what I was thinking from there.
Update [20081002003930EDT]: Almost forgot, uses Cairo for drawing. XOrg process maxes the cpu at the resolution I’m using for this thing… NO idea why. Any programmers wanna help?
Well, I finally finished the fight and beat Halo 3 on Legendary. It took much longer than I expected, but was worth every second. I also found all but 1 skull (the last one has yet to be found by anyone) and tomorrow I’ll activate all 7 terminals. I feel so accomplished… and so tired. Hail to the Master Chief.
So, I just saw a preview for the film “Juno” and I can’t wait. It looks fantastic, and has some awesome one-liners in the trailer alone. Same director as “Thank You for Smoking”, which you should also see.
I’ve always had talents of the beer drinking variety… This is a video circa 2002 with me showing off. I’m much better at drinking now than I was way back then… This video makes me look pathetic.
Just minutes ago I was in some kind of freak rainstorm on the way to VT.
I’m driving along, maybe 30 miles outside of charlottesville, va when it starts to sprinkle. Over the course of the next 10 seconds that sprinkle turned to a god damned waterfall. I shit you not when I say I could have filled a glass with water just by holding it out the window for a few seconds. Visibility beyond the front of my hood was somewhere between 5 and 10 feet, so I could either stay way back, drive slow and hope to god there was no reason for the guy in front of me to slam on his brakes (or the road curved, I couldn’t see the lines), or do what I did… Tailgate so close the SUV ahead of me blocked most of the rain and rely on my cat-like reflexes to save my ass. Needless to say it was a rather stressful 5 miles before the rain just stopped as suddenly as it had begun. WHOO HOWDY good times…