AS3 FOAM 2D Physics Engine

A new AS3 physics engine has been released from generalrelativity and adds itself to the block. It is in early alpha but this is looking pretty good so far. APE, the highly anticipated Motor Physics from polygonal labs and now FOAM, so many wonderful physics toys to build games with!

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

Source

Demos:

SVN:

  • http://foam-as3.googlecode.com/svn/trunk/

Here’s a list of classes in the repo:

AABR
AABRDetector
AbstractSolver
AxisProjection
BezierDetector
Bungee
Circle
CircleAxisProjection
CircleCircleDetector
CirclePolygonDetector
CollisionResolver
CollisionType
Contact
CubicBezierCurve
Euler
Foam
FOAM_AS3
Friction
GravitationalForceGenerator
Gravity
IBody
ICoarseCollisionDetector
ICollisionFactory
IFineCollisionDetector
IFoamRenderer
IForceGenerator
IODE
IODESolver
ISimulatable
KeyDrivenTorqueGenerator
MathUtil
MouseSpring
PerpetualFall
PhysicsEngine
PointPolygonDetector
PolygonPolygonDetector
Renderable
RenderingUtil
RigidBody
RigidBodyBungee
RigidBodySpring
RK4
RotationMatrix
SATCollisionFactory
ShapeUtil
SimpleFoamRenderer
SimpleForceGenerator
SimpleMap
SimpleOrbit
SimpleParticle
Simplification
Spring
Vector
ZeroGravityToyChest

game on! Thanks Drew!

About these ads

4 Responses to “AS3 FOAM 2D Physics Engine”

  1. drawk Says:

    Hey moses, yes now we just need some 3d physics engines! hehe processors may melt but fun will be had by all. Maybe 3d physics engines are a Flash 10 thing due to performance needed but that is only a year+ away.

  2. MosesProposes: Standardizing Animation and Motion Kits for Flash, Flex, After Effects, Javascript and I add Director and haXe « [ draw.logic ] Says:

    […] Posts Fluid Flash LayoutsAS3 3D Rooms and First Papervision3D FPS Engine by Paul SpitzerAS3 FOAM 2D Physics EngineSandy3D and Red5 Server Attack! – Sandy 3.0 Final Released for AS2 and AS3AS3 Mouse Events, No More […]

  3. New AS3 2D Physics Engine Box2DFlashAS3 Based on Box2D for C++ « [ draw.logic ] Says:

    […] Kits for Flash, Flex, After Effects, Javascript and I add Director and haXeFluid Flash LayoutsAS3 FOAM 2D Physics EngineAS3 Amazing Isometric 3D Alternativa Game Engine DemoAS3 3D Rooms and First Papervision3D FPS Engine […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: