Simulation problem

Hello,
I am trying to make tower stability game like 99 bricks at http://apps.facebook.com/silvergames/play/99-bricks.How can i implement automatic tower up/down feature when tower height increase/decrease.Please help me.
Keep an array of the bodies, and check their world position. If it is at a certain height threshold in pixels on the screen, offset the camera so the highest body is below the threshold.
Heyyy jayther!Thanks for a helpful suggestion.I want that,When tower falls effected bricks falls immediately with gravity.Currently i am using world.Step(1/30,10,10).
I have tried world.Step(1/10,10,10) for same but with this,current bricks or flaying bricks also move down fast.Can we specify a different gravity for flaying bricks body?
Please see the my work at below link.
http://pigmentworld.com/chapter/Game.html
Are you using the normal gravity for the controlled blocks? Basing it off the 99 Bricks game, it may be better to use a kinematic body and set its linear velocity (using body.SetLinearVelocity()) so it's not affected by gravity (or any other outside forces), then when it touches the "tower", turn it into a dynamic body. Another way is keep the controlled block a dynamic body and keep setting its linear velocity. I'm not entirely sure which way is better.
Thank you so much! Idea of kinematicBody is working. Is there any APIs or libs are available to implement camera concept with box2d?Currently i am re setting the y position of container movie clip of tower(all bricks and including game base bar). It is working when tower height increase but when tower is falls tower bricks container isn't re set immediately as like 99 bricks and it looks like irritating.16 m is my point to active container re setting code.
Box2D without debug draw is just a very good number cruncher. It doesn't worry about visual aspects whatsoever. So there's no direct camera thing in Box2D.

What you're doing (setting the y position of the container movieclip) is fine, actually. However, the way your camera moves is a little different than that of 99 Bricks'. Looks like your camera has intervals of 16 meters. So it seems like the camera latches on a multiple of 16 meters. 99 Bricks simply chooses the highest body and sets that as the target height to move the camera to (and tries to place that target height to the screen threshold), so there's no interval.

Original thread: https://box2d.org/forum/viewtopic.php?t=8416