Chipmunk 6.x Physics Translation

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Lachie Dazdarian
Posts: 2338
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Re: Chipmunk Physics HowTo guides

Post by Lachie Dazdarian »

March 4.

Could you pls email me your current email: lachie13@yahoo.com
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Chipmunk Physics HowTo guides

Post by dkl »

How about we include these Chipmunk headers into the FB distribution?
Oz
Posts: 586
Joined: Jul 02, 2005 14:21
Location: Waterloo, Ontario, Canada
Contact:

Re: Chipmunk Physics HowTo guides

Post by Oz »

I wouldn't yet, as I have an issue with some of the headers that I haven't resolved (not enough time), but as long as it's only a single-module program, it's no issue. See the first post for more details.

Otherwise, if that doesn't bother you, add it away.
Oz
Posts: 586
Joined: Jul 02, 2005 14:21
Location: Waterloo, Ontario, Canada
Contact:

Re: Chipmunk Physics HowTo guides

Post by Oz »

Bump, moved to github, few updates, and I'm currently working out some of the latest translation bugs.

:: Edit ::
Worked out bugs, can anyone identify why this produces an error if I uncomment it?
Last edited by Oz on Nov 08, 2012 16:09, edited 1 time in total.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Chipmunk Physics HowTo guides

Post by TJF »

Oz wrote:Worked out bugs, can anyone identify why this produces an error if I uncomment it?
DATA is a keyword in FB (mangle it by an underscore: 'data_' ).
Oz
Posts: 586
Joined: Jul 02, 2005 14:21
Location: Waterloo, Ontario, Canada
Contact:

Re: Chipmunk 6.x Physics Translation

Post by Oz »

Already tried that, and it didn't fix it. Well, apparently in last night's evening stupor, i tried "_data_" which didn't work, but "data_" indeed does, so that has been updated, thanks for the find :)


-Oz

:: Edit #2 ::
Actually, it seems the issue is "cpSpaceGetUserData" - apparently, that's a duplicate definition somewhere, however, I can change it to cpSpaceGetUserData_ and everything is fine. Anyone have insight on that?

:: Edit #3 ::
Turns out I misnamed "Shape" as "Space" in a macro in cpShape.bi, which is now fixed in git, and working fine :)
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Chipmunk 6.x Physics Translation

Post by TJF »

Oz wrote:... thanks for the find :)
Thank you, C coder, for extending the FB header pool ; )
Post Reply