Page 3 of 4

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

Posted: Mon Aug 14, 2017 7:09 am
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)

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

Posted: Mon Aug 14, 2017 7:39 am
by RSBasic
IceSoft wrote:Executable:
http://www.morty-productions.de/icesoft ... ipmunk.zip (133.5 KB)
ICEsoft Homepage wrote:Error 404: Not found

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

Posted: Mon Aug 14, 2017 8:06 am
by IceSoft
RSBasic wrote:
IceSoft wrote:Executable:
ICEsoft Homepage wrote:Error 404: Not found
Fixed. Thanks!

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

Posted: Wed Aug 16, 2017 1:55 pm
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)

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

Posted: Thu Aug 31, 2017 10:27 am
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)

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

Posted: Thu Aug 31, 2017 2:27 pm
by djes
Windows defender : Trojan:Win32/Sprisky.A!cl detected ... Maybe you're using some packer ?

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

Posted: Thu Aug 31, 2017 4:47 pm
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.

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

Posted: Mon Sep 04, 2017 5:42 pm
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)

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

Posted: Tue Sep 05, 2017 5:04 pm
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

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

Posted: Tue Sep 05, 2017 6:10 pm
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?

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

Posted: Tue Sep 05, 2017 9:19 pm
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)

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

Posted: Tue Sep 05, 2017 10:44 pm
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.

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

Posted: Wed Sep 06, 2017 6:21 am
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.

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

Posted: Wed Nov 08, 2017 5:44 am
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.

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

Posted: Wed Nov 08, 2017 10:00 am
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)