Hi In BOX2d I have a fixture I know its a polygon through:
b2Shape *sh = fixture->GetShape();
NSLog(@"Type %d", sh->GetType());
//this returns 1, means its a polygon.
Now how to get the vertices in order to know exactly what shape it has i.e. rectangle square etc.