public static void Polygon(FBPolygon polygon, Color color) { foreach (var line in polygon.MovedLines) { Line(line.StartPosition, line.EndPosition, color); } }
public static FBBody CreatePolygon(List <Vector2> points) { var body = new FBBody(); FBPolygon collider = new FBPolygon(); points.ForEach(x => collider.AddPoint(x.X, x.Y)); body.collider = collider; return(body); }