I'm using box2DFlash v2.1a. I have noticed that there is null node in the nodes list right after b2World creation. Here is the code i used for test:
(box2DWorld is private var of b2World type)
And here is the output:
I have run a few more tests and figured out that it is a static body (type == 0), and position is (0; 0). If I delete this body, nothing happens (exept the body gets deleted).
I don't know if it is a bug or something... Maybe somebody has noticed this too?
P.S. Sorry if I have posted in wrong category 🙁
Code:
box2DWorld = new b2World(BOX2D_GRAVITY_VECTOR, BOX2D_DO_SLEEP);
trace("******* test");
var node:b2Body = box2DWorld.GetBodyList();
while (node) {
trace(node);
node = node.GetNext();
}
trace("******* test");
var node:b2Body = box2DWorld.GetBodyList();
while (node) {
trace(node);
node = node.GetNext();
}
(box2DWorld is private var of b2World type)
And here is the output:
Code:
******* test
[object b2Body]
[object b2Body]
I have run a few more tests and figured out that it is a static body (type == 0), and position is (0; 0). If I delete this body, nothing happens (exept the body gets deleted).
I don't know if it is a bug or something... Maybe somebody has noticed this too?
P.S. Sorry if I have posted in wrong category 🙁