Hi,
i am using Opengl for rendering.
If i have a body and have added many fixtures to it. Then how we can display the complex body with many fixtures, since we take only the body position in order to display the body.
eg:
then in order to display both these fixture in rendering, how to do that???
Is it by getting the GetFixtureList()!!!??
but it does not help in setting the position in RENDERING.!!!
all suggestion are welcome
i am using Opengl for rendering.
If i have a body and have added many fixtures to it. Then how we can display the complex body with many fixtures, since we take only the body position in order to display the body.
eg:
Code:
b2BodyDef bodydef;
bodydef.position.set(x,y);
b2Body *body = world->CreateBody(&bodydef);
b2PolygonShape shape;
shape.SetAsBox(hw, hh); //hald width and height
body->CreateFixture(&shape, 0);
b2PolygonShape shape2;
shape2.SetAsBox(hw, hh); //hald width and height
body->CreateFixture(&shape2, 0);
bodydef.position.set(x,y);
b2Body *body = world->CreateBody(&bodydef);
b2PolygonShape shape;
shape.SetAsBox(hw, hh); //hald width and height
body->CreateFixture(&shape, 0);
b2PolygonShape shape2;
shape2.SetAsBox(hw, hh); //hald width and height
body->CreateFixture(&shape2, 0);
then in order to display both these fixture in rendering, how to do that???
Is it by getting the GetFixtureList()!!!??
but it does not help in setting the position in RENDERING.!!!
all suggestion are welcome