Drawing a line - snapping it to an object

Hello,

I’m trying to implement something a bit unusual, and I don’t really know which direction I should take in order to do that, so I wanted to get some advices…

I’m trying to design a mini-game where the player is shown a template (ex. a square or rectangle), and has to draw over it.

So for example the player sees a circle - he needs to draw his own circle over the original one.

The drawing mechanism is already there, but I want to create something extra - I want the line drawn by the player to snap to the original picture, so that his lines would match perfectly to the lines presented to him at the beginning of the level.

I honestly don’t know what is the best approach for that matter, so any advice would be very welcomed…

thank you :slight_smile: