Hello,
i am new to Box2D and i'm using it with AS3
For my first game i created a floor, and a high left and right wall, both connected to the floor.
The result is a "U"-shaped game field.
From the top of the U (between left and right wall) i am releasing boxes once every 2 seconds.
These boxes fall into the "U" on random x positions and get stacked (if they dont fall down to the floor).
The Box2D values for these boxes are:
- friction 0.8
- restitution 0.3
- density 0.7
Everything works fine for some seconds, but then, when there are about 50 boxes in the U, they shortly don't move anymore and then the hole "boxthing" explodes and all boxes get thrown high in the air.
I don't now what i can do to prevent that strange behaviour, maby it's a setting change in restitution or density?
I hope someone understands what i'm trying to explain here 😉
Thaks in advance,
begs
i am new to Box2D and i'm using it with AS3
For my first game i created a floor, and a high left and right wall, both connected to the floor.
The result is a "U"-shaped game field.
From the top of the U (between left and right wall) i am releasing boxes once every 2 seconds.
These boxes fall into the "U" on random x positions and get stacked (if they dont fall down to the floor).
The Box2D values for these boxes are:
- friction 0.8
- restitution 0.3
- density 0.7
Everything works fine for some seconds, but then, when there are about 50 boxes in the U, they shortly don't move anymore and then the hole "boxthing" explodes and all boxes get thrown high in the air.
I don't now what i can do to prevent that strange behaviour, maby it's a setting change in restitution or density?
I hope someone understands what i'm trying to explain here 😉
Thaks in advance,
begs