0
I have an object that is hit by the raycast and use
cObj.transform.position = Vector3.MoveTowards(cObj.transform.position,main.transform.position, step);
for the object to go against the camera.
How do I get him back to his starting position? I have a button that when focused the image goes back to where it came from.
That object that is hit by a raycast the initial position of it is always the same ?
– Miguel Soeiro