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

OK, here's Schranz0r's port of Box2D. I extended it a bit so you can debug the shapes, too.

Also, at the very bottom of the file, there's an example ("b_WakeUp") that should get you started how to extend the wrapper. You might need the get/set acceleration and velocity functions as well as the add impact functions. A "is point in shape" function would be handy for picking, too.It's all there, just wrap it. Ask here if you need help.

You propably need the header pack (which I should update, btw.)@Schranz0r - where is the header pack?!

“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)

My EditorE.exe is version: GLBasic IDE, Version: 7.115GLBasic had a long list of errors on the first compile.So, I installed the header pack.After installing the header pack, i get a new error message:

@Schranz0r:Well yes, I installed the files and allowed overwriting of directories, it asked for each platform.Afterwards, the error with a long list didnt happen anymore.A new error message, the one i posted in my last post, is what i get now.

In file included from C:/glbasicProjects/GLBasic/Box2D/Source/Common/b2BlockAllocator.cpp:20, from C:\Temp\glbasic\gpc_temp1.cpp:37:C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/cstdlib:49:28: bits/c++config.h: No such file or directoryIn file included from C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/bits/stl_algobase.h:70, from C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/memory:54, from C:/glbasicProjects/GLBasic/Box2D/Source/Common/b2BlockAllocator.cpp:21, from C:\Temp\glbasic\gpc_temp1.cpp:37:C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/iosfwd:46:29: bits/c++locale.h: No such file or directoryC:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/iosfwd:47:25: bits/c++io.h: No such file or directoryIn file included from C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/memory:55, from C:/glbasicProjects/GLBasic/Box2D/Source/Common/b2BlockAllocator.cpp:21, from C:\Temp\glbasic\gpc_temp1.cpp:37:C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/bits/allocator.h:52:31: bits/c++allocator.h: No such file or directoryIn file included from C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/memory:55, from C:/glbasicProjects/GLBasic/Box2D/Source/Common/b2BlockAllocator.cpp:21, from C:\Temp\glbasic\gpc_temp1.cpp:37:C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/bits/allocator.h:80: error: expected template-name before '<' tokenC:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/bits/allocator.h:80: error: expected `{' before '<' tokenC:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/bits/allocator.h:80: error: expected unqualified-id before '<' token*** FATAL ERROR - Please post this output in the forum