Archive

Archive for the ‘Uncategorized’ Category

Circle Collision Update

September 30th, 2007

I updated my tutorial on dynamic circle collision detection in Flash to demonstrate a more physically realistic reaction. Reaction is given only to illustrate how to implement the results of the detection scheme, but is physically viable.

drew ActionScript 3.0, Mathematics, Physics, Uncategorized

ActionScript 3 Rigid Body Physics Engine

September 8th, 2007

I started work on a 2D rigid body physics engine that I’ll be releasing as open-source. There are a few AS3 physics engines out there- Fisix, APE, the unreleased Motor… and while I’m sure this will fill a few holes, I’m most interested in it being a resource for developers wanting to simulate physics, as I’ve had trouble finding a comprehensive source of the hows and whys.

Here’s a demo. Use left and right arrow keys to spin the wheel. You can grab the movable objects and toss them, too.
Foam Bezier Demo

As it gets further into development I’ll write some tutorials to explain some of the engine’s inner-workings etc.

Current Features:

  • Rigid body simulation
    • Arbitrary convex polygons
    • Circles
    • Cubic Bezier curves
    • Lines
  • Constraints
    • Springs
    • Bungees
  • Easily swappable numerical integrators
    • RK4
    • Euler
    • Midpoint
  • Separation Axis Theorem based collision detection
  • Modular force generation

Next up is splitting collision detection into coarse and fine phases via spatial partitioning.

Oh- and I’m calling it FOAM.

drew ActionScript 3.0, FOAM, Mathematics, Physics, Uncategorized

Comment Purge & Rebirth

June 4th, 2007

Sorry to everyone who posted comments- in my inexperience, generalrelativity got inundated in spam sauce!! It was so cumbersome that I had to dump all comments from the database… I’ve learned my lesson.

Also- I intend to write a TON over the next couple months.

drew General, Uncategorized

HOLY SHIT, I GOT MARRIED!!11!!1

April 24th, 2007

For my billions of readers out there whose lives hinge on my every word, I’m sorry; I haven’t had a half-ounce of time to do anything, notleastofwhich ride this stallion. I was busy legally binding my bank account to m’lady’s- Wall Street Journal listed it as one of the most important mergers of ‘07.

I doubt anyone who stumbles across generalrelativity actually cares, but it was, quite seriously, the greatest time I’ve ever and probably will ever have.

nyawk

drew General, Uncategorized