I have created a polygon shape (which is a triangle):
I gave it these vertices: b2Vec2 vertices[3] = {b2Vec2(-1.0f, 1.0f), b2Vec2(0.1f, 0.0f), b2Vec2(1.0f, 1.0f)};
Everything runs fine in the simulation, however I want to draw using my own renderer the lines that those vertices create.
However, the vertices positions are the same as when I initialized them!!! How can I get those vertices positions?
I gave it these vertices: b2Vec2 vertices[3] = {b2Vec2(-1.0f, 1.0f), b2Vec2(0.1f, 0.0f), b2Vec2(1.0f, 1.0f)};
Everything runs fine in the simulation, however I want to draw using my own renderer the lines that those vertices create.
However, the vertices positions are the same as when I initialized them!!! How can I get those vertices positions?