Moving polygon points

Hi All,

I’m developing a game using SpriteKit, I want to draw a polygon and let the user change the polygon by touching and dragging its corners, how can I do that?

basically I can get which corner has been touched and I know how much I need to move the corner, I used a path (CGPath or similar) to draw the polygon, but then couldn’t find anyway to move a point in the path,



I think you are on the right track with Moving a line programatically

I’d break the polygon into nodes for each line segment, and adjust the lines as needed.