advanced 2D physics engine?

Started by
15 comments, last by Speeder 15 years, 8 months ago
Well I gave up on ODE+Plane2D, to much hassle to get it working. I got the tip to use Novodex, but it's for 3D. That always mean you have to use "tricks" to make it 2D like bounding everything to a z=0 plane. There should be some 2D physics engine that's capable of some rigid bodies, ropes, collision detection, friction, etc. Right? If you know of one, please tell me :) Edit: still interested even though I got ODE to compile ;) [Edited by - Seriema on December 28, 2004 6:57:18 PM]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
Advertisement
Its not exactly an engine, but whenever I need physics code I just take it from http://www.magic-software.com/SourceCode.html. Also, if you own the book Game Physics by David Eberly, you can download the entire Wild Magic Engine with Physics support for free.

It may not be exactly what you want, but as far as code for 2D Physics, this is the best I have found. There is source code for 2D and 3D geometry. If anyone else knows of an actual engine I would be interested in this too.
thank you wyrzy for the tip. I just got two concerns about that lib, 1) it's still focused on 3d even though it supports 2d in some places. 2) this:
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Game Physics source code is supplied under the terms of the license
// agreement http://www.magic-software.com/License/GamePhysics.pdf and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.

And when reading that license, the first thing is:
"(a) You must own a copy of The Book (“Own The Book”) to use The Software. Ownership of one
book by two or more people does not satisfy the intent of this constraint."

Since I don't have the book it would be wrong to use the code, even thought it's right there and I can almost smell it! :P
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
I'm writing a 2D only physics engine. My belief is that while the 3d physics engines are just starting to get into good user/environment interaction, there is already plenty of horsepower in the newer computers to do realtime liquid, mass objects physics if it is limited to 2D.

What are your reasons for wanting 2D only?

Quote:Original post by pTymN
What are your reasons for wanting 2D only?


My game is in 2D :) I don't need the z-axis for anything. I'm making a platform kind of game.
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
After little Googling I've found this one:

http://www.aidspan.org/alec/projects/

there are some 2d physics demos + source code, it could be worth to look at it.

Quote:
If anyone else knows of an actual engine I would be interested in this too.


I second that - if anyone could share some good links to 2d physics engines (though I think such ones don't exist) or even completed 2d game's engines, that use 2d physics, I would also be greatly interested in it - from experience I know that writing 2d algorithms based on 3d versions isn't just dropping out z axis :-)


EDIT:

wow, look what I've found (following one of the links in above URL): http://physical.alecrivers.com/
Looks very interesting...
Yes I found those links on my google run too. But they aren't that well documented. And the PHYSICAL thingie is some kind of game maker, with physics.

Someone should really make a 2D ODE *cough* *cough* ;)
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
you can try my 2d engine, kyc-bats.sf.net (~30meg .rar chronodoll download, and click on the screenshots link for an idea of how it looks).

I plan on rewriting it sometime after finishing my current game, but that may be a few months from now.

If you decide to take a look, make sure you check out all of the different builds. Also some of the binaries are not representative of the sources, so rebuild if you can. You can also change the map files and change the springiness and masses, etc... A noteworthy build is chronobeast (it's just cool heh).

Btw the *.msp files are project files for the MinGW Developer Studio IDE, google.
you can try out my 2D physics engine.
http://physics2d.sourceforge.net/
The last post was one and a half years old... :)
But now it's resurrected, I might point out that it seems the license for wild magic has changed. Look here

This topic is closed to new replies.

Advertisement