Scrolling Game Development Kit Forum

SGDK Version 2 => General Discussion => Topic started by: durnurd on 2009-05-06, 09:43:31 AM

Title: Chipmunk Physics Engine
Post by: durnurd on 2009-05-06, 09:43:31 AM
Here's a physics engine I found for 2D games:

http://code.google.com/p/chipmunk-physics/

You definitely need to take a look at some of the videos they have;  Pretty interesting stuff
Title: Re: Chipmunk Physics Engine
Post by: Vincent on 2009-05-06, 02:14:56 PM
It's impressive!  Looks a lot like the game "Crayon Physics Deluxe".  I guess that game uses a similar physics engine (if not the same).  The youtube videos on fluid simulations with this engine are impressive!  Too bad it's not this fast at runtime (comments on the video say it took about 6 seconds to render each frame). 

I don't see a C# wrapper for it...  I wonder if it could be easily integrated in SGDK2.1?  ...  Nah, I guess it would be quite a lot of work.  Would be great!  :)

Title: Re: Chipmunk Physics Engine
Post by: durnurd on 2009-05-06, 04:56:33 PM
The engine is part of the cocos2d-iphone framework, which I've used at work to develop games for the iPhone.  It's fast enough for that, so while it may be a little slow at runtime when you have thousands of interactions every frame, in a normal 2D game, it would certainly suffice.
Title: Re: Chipmunk Physics Engine
Post by: Jam0864 on 2009-05-07, 12:25:12 AM
A physics engine would make SGDK2 very unique as a free 2d engine.

Not sure how it will work with the current implementation though, a lot of things would have to be changed as far as I know.
Title: Re: Chipmunk Physics Engine
Post by: bluemonkmn on 2009-05-07, 05:21:13 AM
Looks like Little Big Planet 2D :)
Title: Re: Chipmunk Physics Engine
Post by: Jam0864 on 2009-05-07, 05:45:14 AM
Speaking of Little Big Planet, I had a shot at it at a mate's place and had a troublesome time with the depth of platforms, I found I'd go in front or behind them a lot and fall to my death or to a lower platform that forced me to redo a section of the level... Good game though.
Title: Re: Chipmunk Physics Engine
Post by: bluemonkmn on 2009-05-08, 05:39:31 AM
Strange I had the opposite problem, but never noticed it when playing the actual official game/levels (they must have been well-designed -- did you play the official game?).  I was always landing on ground when I was trying to jump down farther because the player automatically switches to the layer where ground is when falling.
Title: Re: Chipmunk Physics Engine
Post by: Jam0864 on 2009-05-08, 05:56:50 AM
I don't actually own a PS3 so I only had a short shot at it at my mate's place. He said that you get used to it after playing for an hour or so, but I never really got a chance to play more than 5 minutes.  :(