Hi Erin,
I'm tring to use your engine to make games on GP32 handheld console, but after compile your library I realised that I have no idea about where to start.
Examples contained on "TestBed" folder are not self explanatory for a novice on physics programming. I wonder if there is some webpage with some explanation about using your library, initializations and parameters needed, and so on.
Thanks for your work and excuse my bad english
I'm working on the documentation right now. For now I can add more comments to a test case. Which one interests you most?
I was looking for a general comment about how to proceed to get any really simple example working, with no graphics.
For example, how to initialize the world, define a fixed box shape as ground, and another small box shape over the ground. Then how to start the simulation loop and how to read position, velocity, etc of the shapes. Starting from here, I hope I could explore the library by myslef 😀
Thanks in advanced and don't worry if you can't help me with this, I can wait for you to finish the documentation 😉
I found that the test application is fairly easy to dissect. (Uhmm... this is what I did, but I'm still a C++ newb)
Each project is a header file that has 99% of what you need.
The other 1% is a world... which I passed to the class found in the various headers instead of inherting from Test.
class Bridge //: public Test
{
public:
Bridge( b2World* m_world )
{
// code of the string or whatever....
}
};
...
// create m_world as in Test::Test (Hrm...)
new Bridge( m_world)
do a little searching for that and you'll find nicely grouped together how to create a basic world with gravity.
You'll also need to do Raid the Step() routine from test.cpp and remove most of it (the simple parts that draw the basic objects is near the top... the lower stuff is all those extended options to show various things.
Thanks a lot, now I have many problems with memory and unsupported functions, but they are not Box2D related 🙄
I'll keep trying...
I added a HelloWorld project to SVN. That should get you going.
wow, just when I finally managed to solve all those stranges hangs on gp32 😀
Thank you again ^^. Now I don't have any subversion client to download your helloworld, and is quite late to be awake (3:23a.m.), but tomorrow I'll try your example, regards
EDIT: Ooopss...I didn't realised that Sourceforge has a link to browse the CVS 😳
This example is perfect, those comments are what I need 😁 I'll post here if I do something interesting 😛
EDIT2: The helloworld doesn't compile with the last version available for download, but does with the CVS version...¿is stable and usable this version or are you testing things?
After some testing, I have found that Box2D is too slow for GP32 saddly 😢
Anyway I will test every change you made over SVN, I've seen new method headers like "ApplyTorque" that may be useful to recreate a spining wheel, isn't it? Is there a way to make something like a controlled bicicle?
Edit: I think I found the answer on other post, but better wait for you to implement this on the API 😆
I'm working on a new build of Box2D, as I work on the documentation. Expect it to come later this week. I'm going to add a couple more joints types and build up the documentation.
The SVN versions are my incremental checkins. I usually make sure all the testbed apps run before I check in.
I would imagine that a GP32 doesn't have a floating point point processor. Since most of the vector/matrix classes are custom, I would think it wouldn't be too much of a bother to replace with a fixed point integer math library instead?