public override void DrawPolygon(b2Vec2[] vertices, int vertexCount, b2Color color) { b2Vec2[] alt = new b2Vec2[vertexCount]; for (int i = 0; i < vertexCount; i++) { alt[i] = vertices[i] * PTMRatio + _Center; } CCDrawingPrimitives.DrawPoly(alt, vertexCount, true, color); }
public override void DrawPolygon(b2Vec2[] vertices, int vertexCount, b2Color color) { _list.Count = vertexCount; var alt = _list.Elements; for (int i = 0; i < vertexCount; i++) { alt[i] = vertices[i] * PTMRatio + _Center; } CCDrawingPrimitives.DrawPoly(alt, vertexCount, true, color); }