Chipmunk 4.1.0 : 2D physic library

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Chipmunk 4.1.0 : 2D physic library

Post by eddy »

:arrow: download link : http://www.datafilehost.com/download-9c1e41ca.html
:arrow: video : http://fr.youtube.com/watch?v=sTHoWaTNJiA
- windows : OK
- mac : ???
- linux : ???
- chipmunk.txt (list of functions exported by Libdump)
- chipmunk.lib (static lib compiled by PelleC with 'smallest size' option)
- chipmunk.converter.pb (generate include file for PB)
- chipmunk.pb (chipmunk library for PB)
- examples
- win x86 platform test : OK
- win x64 platform test : ???

well i’d very much enjoy it if someone could compile a linux/mac version :D (sources are included)
Last edited by eddy on Sat Sep 26, 2009 4:20 pm, edited 19 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Chipmunk 4.1.0

Post by PB »

Err, what is it?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

it's a 2D physic engine
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Thanks eddy...great work. I like it...and I will use it ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
idle
Always Here
Always Here
Posts: 5839
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

cool, will be interesting to see what people do with it.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

:evil:
I noticed my 'returned structure' trick does not work.
The compiler didn't return structure as POINTER.

Code: Select all

cpvforangle(*RESULT.cpVect, angle.f)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

The video looks great. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

ok... Now it's fully functionnal :D
- updated : examples
- updated : lib
- types used for calculation : double, int (so I Keep Chipmunk preferences)
- compiled with speed optimization

I found how to improve the compatility with PB:

Code: Select all

/// compatibility with PB structure alignment (1 byte)
#pragma pack(1)	
/// conversion to PB type (enum => long)			
#pragma enum(4)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Post by Artus »

Hio Eddy^^,

First, you have a really good job done! But ... ^^ i don't check the Samples -.-, my question is: Have you please any documentations to used it? Or anything that explain what is processing at this line?

Thats would be great!

MfG Arthur
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Thank you very much!

Hope to have time to look into this one sooner or later (later I bet, sigh).
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

Artus wrote:Hio Eddy^^,

First, you have a really good job done! But ... ^^ i don't check the Samples -.-, my question is: Have you please any documentations to used it? Or anything that explain what is processing at this line?

Thats would be great!

MfG Arthur
I didn't found any good tutorial.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Post by Artus »

:( ok

MfG Arthur
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Re: Chipmunk 4.1.0 : 2D physic library

Post by Heathen »

Can someone reupload this please?

Thanks!
I love Purebasic.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Chipmunk 4.1.0 : 2D physic library

Post by eddy »

uploaded
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Re: Chipmunk 4.1.0 : 2D physic library

Post by Heathen »

eddy wrote:uploaded
Thanks, I appreciate it! :)
I love Purebasic.
Post Reply