# JBox2D - how to get vertex positions?

I've created a triangle for jbox2d...

public void createTri(){

PolygonDef shape = new PolygonDef();

shape.density = 2.0f;

shape.friction = 0.8f;
shape.restitution = 0.3f;

BodyDef bodyDef = new BodyDef();
bodyDef.position.set(50/RATE, 50/RATE);
bodyT= world.createBody(bodyDef);
bodyT.createShape(shape);
bodyT.setMassFromShapes();
}


... but when drawing it on canvas, how to I get position of all the vertexes?

with bodyT.getPosition().x and .y I can get only the center spot.

Thanks!

  //Returns a Vec2 (the coordinates) of a vertex given its index