hey folks,
I've been experimenting with box2d, since it was used in angrybirds, to make similar structures like those of the game
My problem is that my structures, built up from bricks, collapse after running the physic world, even when the position of the bricks match "exactly" one on top and next to each other, like those in a wall. Some times my structures "bounce" or restitute to an equilibrium state, only after they try to collapse
Observing closely those structures in angrybirds, they appear to "step" from its initial position, when the level has just started, jumping to an equilibrium position, each object resting on top or next to each other, and not collapsing like mines
So I was wondering if:
1) do I need to anchor each brick to its initial position, with a junction or applying forces, and run the physic simulation until they reach an equilibrium to avoid their collapse
2) can I save the state of the physical world after my structures are in equilibrium, in order to them to be loaded the next time I run the game
Any help will be appreciated
Thanks very much
I've been experimenting with box2d, since it was used in angrybirds, to make similar structures like those of the game
My problem is that my structures, built up from bricks, collapse after running the physic world, even when the position of the bricks match "exactly" one on top and next to each other, like those in a wall. Some times my structures "bounce" or restitute to an equilibrium state, only after they try to collapse
Observing closely those structures in angrybirds, they appear to "step" from its initial position, when the level has just started, jumping to an equilibrium position, each object resting on top or next to each other, and not collapsing like mines
So I was wondering if:
1) do I need to anchor each brick to its initial position, with a junction or applying forces, and run the physic simulation until they reach an equilibrium to avoid their collapse
2) can I save the state of the physical world after my structures are in equilibrium, in order to them to be loaded the next time I run the game
Any help will be appreciated
Thanks very much