[Chipmunk2D4PB] 2D Physics Engine

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.01 Preview (2D Physic Engine Wrapper)

Post by IceSoft »

Here the Chipmunk2D port to [2D]Gravity&Bounce:
http://www.purebasic.fr/french/viewtopi ... =2&t=16250

Image

what can you do:
- Mouse is working (mouse picking)
- Player (red square) can be controlled with left/right arrow key and space
- Debug draw (press the "D" for on/off)

Executable:
http://www.morty-productions.de/icesoft ... ipmunk.zip (133.5 KB)
Last edited by IceSoft on Mon Aug 14, 2017 8:06 am, edited 1 time in total.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: [Chipmunk4PB] 7.01 Preview (2D Physic Engine Wrapper)

Post by RSBasic »

IceSoft wrote:Executable:
http://www.morty-productions.de/icesoft ... ipmunk.zip (133.5 KB)
ICEsoft Homepage wrote:Error 404: Not found
Image
Image
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.01 Preview (2D Physic Engine Wrapper)

Post by IceSoft »

RSBasic wrote:
IceSoft wrote:Executable:
ICEsoft Homepage wrote:Error 404: Not found
Fixed. Thanks!
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.01 Preview (2D Physic Engine Wrapper)

Post by IceSoft »

Here the Chipmunk2D demo example "Tumble":

Image

what can you do:
- Mouse is working (mouse picking)
- Player (red square) can be controlled with left/right arrow key and space
- Debug draw (press the "D" for on/off)

Executable:
http://www.morty-productions.de/icesoft ... Tumble.zip (133.5 KB)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.01 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

what can you do:
- Mouse is working (mouse picking)
- Debug draw (press the "D" for on/off)


[update]
- Chipmunk2D 7.0.2
- PureBasic 5.61 Beta1

Demos (switch between the demos = F12):
- Tank
- Pyramid Stack
- Pyramid Topple
- Gravity&Bounce


Executable:
http://www.morty-productions.de/icesoft ... 2_demo.zip (135KB)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by djes »

Windows defender : Trojan:Win32/Sprisky.A!cl detected ... Maybe you're using some packer ?
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

djes wrote:Windows defender : Trojan:Win32/Sprisky.A!cl detected ... Maybe you're using some packer ?
You should ask Fred.
It is only the PureBasic (5.61 beta1) executable zipped (winzip)
But I will make a you tube video.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by Joubarbe »

You seem to have put a lot efforts into that, and PureBasic really needs a 2D physics engine, so thank you for that. However, this utterly lacks documentation! The title of the thread mentions a 7.0.2 version, but I can only find the 7.0.1. Your examples seem interesting, but as a developer, I would like to have the source code instead of .exe files :)

(Windows Defender is stupid)
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

Documentation is the same as the original Chipmunk2D has.
Only some cp*(...) functions will have an additional first parameter in front of the original parameters.

I added the latest changes from Chipmunk2D GitHub.
What's new in Chipmunk2D 7.0.2:
+* MISC: Merging pull requests. Build fixes and the like.

Of course! You all will get the Lib and the source examples/demos too for writing own physics games ;-)
I have to fix a memory leak first and add some more missing/interesting stuff.
Also I want try to make a PureBasic Chipmunk4PB wrapper game for this:
Game Programming Contest
http://www.purebasic.fr/english/viewtop ... 16&t=69013
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by Joubarbe »

Good luck with that :)

Did you notice that in the pyramid demo, if you take the very top square and drop it to make it roll over all the other squares to the bottom, it has a very strange behavior? Is it a problem with Chipmunk2D or Chipmunk4PB?
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

Joubarbe wrote:Good luck with that :)

Did you notice that in the pyramid demo, if you take the very top square and drop it to make it roll over all the other squares to the bottom, it has a very strange behavior? Is it a problem with Chipmunk2D or Chipmunk4PB?
I think you mean the mouse (with an object picked) is left the window?
Fixed! Thanks for info (I saw it too but it was not so important for me to fix it ;-P)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by Joubarbe »

No I mean the square teleports itself to the bottom, or at least several squares down instead of smoothly rolling over all other squares. I'm talking about the Pyramids demo here. Please see this screenshot and try to reproduce it. The square is not falling in a coherent way.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

Joubarbe wrote:No I mean the square teleports itself to the bottom, or at least several squares down instead of smoothly rolling over all other squares. I'm talking about the Pyramids demo here. Please see this screenshot and try to reproduce it. The square is not falling in a coherent way.
I see it too. Thanks.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by IceSoft »

IceSoft wrote:
Joubarbe wrote:No I mean the square teleports itself to the bottom, or at least several squares down instead of smoothly rolling over all other squares. I'm talking about the Pyramids demo here. Please see this screenshot and try to reproduce it. The square is not falling in a coherent way.
I see it too. Thanks.
Fixed.
Actually porting the C++ examples to PB wrapper source examples.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: [Chipmunk4PB] 7.0.2 Preview (2D Physics Engine Wrapper)

Post by Lunasole »

Hi Icesoft, your wrapper now is really cool (much more usable than my previous), nicely done.

Still Chipmunk is best 2D engine to use with PB (and probably, best one at all)
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Post Reply