can i make a board game like pool in box2d flash

i am trying to make a pool game in box2dflash. bt the the problem i am facing now is ..i do not know how i can set the position of a b2body..i can get its getPosition but not its setPosition..

Any help would be appreciated
use setPosition() when you are first creating the body. After that Box2D will handle all the position updates for you.
Or if you are making billiards, you can do this:
Code:
var bd:b2BodyDef = new b2BodyDef();
var circ:b2CircleShape = new b2CircleShape(radius);
circ.SetLocalPosition(new b2Vec2(xPosition, yPosition));
var cfx:b2FixtureDef = new b2FixtureDef();
cfx.shape = circ;
var body:b2Body = m_world.CreateBody(bd);
body.CreateFixture(cfx);


One other possibility, is you are correctly setting the position, but the object is offscreen. try setting it to a low number.

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