Something is somewhere in your world, and you want to re-position it. How is this done? I currently have this:
transform.position = new Vector3 (0,0,-49);This works if you want to position something precisely on a point, but what if I just want one or two coordinates to be specific and the other coordinate(s) to be the initial point it was on when the code executed.
For example, an object that is on 10,10,10 would be set back to 10,10,0. If it was 15,77,39, it would be set back to 15,77,0. It remembers it’s current location and only adjusts specific coordinates.