No success... don't know why :/
Well.. it was for Darkbasic from Diggsey, and its functions sometimes had Dword as parameter types, and i used Long instead. Dont know if it could cause the incompatibility...
No errors at all, but when i make a little test it just lags a bit when the refresh function "b2Step()" is called...
I even get the right addresses from each function (compared them loading the dll with Dllexp, which shows functions, addresses and stuff...) But still, doesnt work:
Code: Select all
;simplified
myworld = b2CreateWorld(-1000,-1000,1000,1000,0,0,0)
newbox = b2CreateBoxBody(myworld,40,40,1,0.2,0.5)
b2PositionBody(newbox,100,-100)
...
;main loop
b2Step(myworld)
debug b2GetBodyX(newbox) ;returns "-1.#IND" always (???????)
Also, i tried to compile box2d myself from the source to a DLL... Fail.
I'm stupid as hell when dealing with C/C++, and ofcourse, the functions need to be exported to make a usefull dll wrapper. I have not such skill :/
I have eddy's(i think) chipmunk port, but its TOO complicated to make stuff. My newton 3d physics wrapper for blitz3d(which works on purebasic after importing each function) is easier to use than this chipmunk wrapper. (I mean: create world, create virtual object, create sprite object, then sync sprite's position and rotation to virtual object's position and rotation after each loop)
That is. Have anyone ever made a wrapper for box2d, no matter what language for, that its functions could be imported to PB ???
Or does anyone have neotoma's HGE wrapper(which i've read somewhere that has box2d integrated(???) Because its link on its respective post is broken (2008)
Thanks all for your patience and help in advance
