I'm trying to select my sphere in the game and move it to a location in the game world based on where i click my mouse on the floor/plane. So far I've been messing around with the Input.mousePosition function along with the transform.translate things and I've been very unsuccessful.
Currently I have this useless code:
I've tried associating this code with both my sphere and my main camera, but to no avail. I hate to admit it but I've been trying to do this for hours, and I'm getting absolutely no where I'd like to keep it to simple statements or functions if possible. Does anyone have some ideas? Even some good tutorials on how to select and move an object to a different location in the game world would be great.