Hey there,
first of all, thank you very much for Box2d. It works very well.
I integrated it into hge (Haafs Game Engine) and use the "physical" position of the bodies as center for the hge hotspots. This connection is done via a class that is called centity. It contains a dynamic array of pointers to a hgeanimation object (pointers only, not actual objects) and one b2body as actual object. The pointer to the body is not set by centity, but by a class called clevel, which manages tiles and objects.
With this setup, I have done a small game in which I can create bodies dynamically (this I use as a level editor right now). However, after I created a few bodies (amount varies), I get an Assertion error (see screenshot). The same problem I encountered when I tried to delete bodies, reuse the pointer to the body (e.g. for differing animation sizes), and create new bodies with that pointer.
As a compiler, I use bloodshed and MiniGW. I have compiled box2d into a static (.a) library.
My question is, could this be a box2d error or is it more likely my insufficient programming skills? Where am I to look first?
Your help is very much appreciated, cheers, hawkei
first of all, thank you very much for Box2d. It works very well.
I integrated it into hge (Haafs Game Engine) and use the "physical" position of the bodies as center for the hge hotspots. This connection is done via a class that is called centity. It contains a dynamic array of pointers to a hgeanimation object (pointers only, not actual objects) and one b2body as actual object. The pointer to the body is not set by centity, but by a class called clevel, which manages tiles and objects.
With this setup, I have done a small game in which I can create bodies dynamically (this I use as a level editor right now). However, after I created a few bodies (amount varies), I get an Assertion error (see screenshot). The same problem I encountered when I tried to delete bodies, reuse the pointer to the body (e.g. for differing animation sizes), and create new bodies with that pointer.
As a compiler, I use bloodshed and MiniGW. I have compiled box2d into a static (.a) library.
My question is, could this be a box2d error or is it more likely my insufficient programming skills? Where am I to look first?
Your help is very much appreciated, cheers, hawkei
