First sorry for my bad english.My question is: how in box2d I can add texture on polygon, I make poligon use b2Vec2 something like:
b2Vec2 vertices[count1];
vertices[0].Set(5.0f,2.0f);
vertices[1].Set(2.0f,1.0f);
vertices[2].Set(2.0f,0.0f);
vertices[3].Set(5.0f,-1.0f);
b2PolygonShape polygon;
polygon.Set(vertices,count1);
but when I wold use CCSprite to add image to polygon nothing happens