how to spawn a line towards the touch point,when screen is touched, from an object?

how to spawn a line towards the touch point,when screen is touched, from an object?