What would be a good approach to cut a line (or curve) at a specific point (let's say we use the mouse pointer to detect the position of the cut).
The curves you see in the image above, are Bezier curve generated using the
LineRenderer and have a
PolygonCollider2D attached that covers the entire curve (taking the width set to the
LineRenderer into consideration).
Imagine a game like Cut the Rope or Fruit Ninja, where you use the mouse pointer to cut the wires. I already implemented the cut detection algorithm, so I know the point where my wire needs to be cut. I would like to know how can I snap the wire in two and add some sort of animation.