BASIC

Author Topic: Box2d - 2D physics  (Read 55028 times)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3338
  • Integrated Brain
    • View Profile
Re: Box2d - 2D physics
« Reply #180 on: 2011-Nov-15 »
Yes nathan don´t care I post before you, the files are correct.
 :good: :good:

Offline Codeguru

  • Mc. Print
  • *
  • Posts: 2
    • View Profile
Re: Box2d - 2D physics
« Reply #181 on: 2011-Dec-25 »
anyone able to compile the test into the android target ?
i got massive errors not found any header file:

compile+link:
C:\Users\MickyD\AppData\Local\Temp\glbasic\gpc_temp1.cpp:83:19: error: box2d.h: No such file or directory
C:\Users\MickyD\AppData\Local\Temp\glbasic\gpc_temp1.cpp:87:46: error: Source/Common/b2BlockAllocator.cpp: No such file or directory

.....
and a lot more errors

Offline neseir

  • Mc. Print
  • *
  • Posts: 21
    • View Profile
Re: Box2d - 2D physics
« Reply #182 on: 2011-Dec-25 »
Hi

I made it work on Android but I had to add a reference to the header (check this posting earlier in the thread)  :http://www.glbasic.com/forum/index.php?topic=3561.msg53765#msg53765

//Eirik

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2542
    • View Profile
Re: Box2d - 2D physics
« Reply #183 on: 2011-Dec-29 »
Not touched Box2D for a LONG time but I thought I would have a little play with this great lib once again, one thing though before I start a new project. The first post says "Updated version 13 oct 2011", is this the most recent version?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10661
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Box2d - 2D physics
« Reply #184 on: 2011-Dec-29 »
Yes, I think so.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2542
    • View Profile
Re: Box2d - 2D physics
« Reply #185 on: 2011-Dec-29 »
Ah, cool, thank you.  :good:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Box2d - 2D physics
« Reply #186 on: 2013-Oct-17 »
Is there a newer version?. There are many functions that are not implemented. Does anyone has done it?. I am interested in the various types of joints mainly, but any progress is welcome.

Sorry I can not help in the port but I am zero in C + +.

Thanks for everything.  :-[
« Last Edit: 2013-Oct-17 by msx »

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Box2d - 2D physics
« Reply #187 on: 2013-Oct-17 »
Is there a newer version?. There are many functions that are not implemented. Does anyone has done it?. I am interested in the various types of joints mainly, but any progress is welcome.

Sorry I can not help with the port but I am zero in C + +.

Thanks for everything.  :-[

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3338
  • Integrated Brain
    • View Profile
Re: Box2d - 2D physics
« Reply #188 on: 2013-Oct-18 »
I think not,but really don't worry about C++, I don't have too much idea and I do my OpenGL Libs in C++...

Basically it's make a function standard of GLbasic,...

function physics:
inline
Here copy the Code of the real C++ code of Box2D,
endinline
endfunction

If you take a look to the another functions you can see the way... perhaps the problem can be with Arrays, and Integers in the C++ pg GLbasic have the pronoum DGInt ...

I think can't be complex but it's time for do it  :whistle: :whistle: