Author Topic: Chipmunk Physics Engine  (Read 5816 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Chipmunk Physics Engine
« 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
Edward Dassmesser

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 612
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Chipmunk Physics Engine
« Reply #1 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!  :)

Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Chipmunk Physics Engine
« Reply #2 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.
Edward Dassmesser

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Chipmunk Physics Engine
« Reply #3 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.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Chipmunk Physics Engine
« Reply #4 on: 2009-05-07, 05:21:13 AM »
Looks like Little Big Planet 2D :)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Chipmunk Physics Engine
« Reply #5 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.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Chipmunk Physics Engine
« Reply #6 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.

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Chipmunk Physics Engine
« Reply #7 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.  :(