Hi everyone!
I have been searching back and forth for the last hour trying to piece together what I am trying to accomplish. I know I am warm, but I can't get the pieces fitting together right. I made a short video of what I am trying to achieve.
![Video Description][1]
[1]: http://www.apixal.com/global/i/uanswers/061914.gif
So, as you can see, I have an Isometric (Orthographic) camera in a 3D world. I would like it so that when the player taps on the screen that the object goes to that location in the game world. I already wrote the script for the camera to follow the Player. So some things that I am am aware about but not sure how they fit together. I was able to use:
`Input.GetTouch(0).position`
To get the PIXEL coordinates of the touch event. However, not sure how to convert this to the Game World coordinates (build target is iPhone 5/iOS). I read somewhere about dividing the device's screen height and width, and I also read somewhere about using `Camera.main.ScreenToWorldPoint'.
And I am not sure if having the camera track the Player object makes any difference. I am using C#.
Any advice or examples would be so helpful. I am just at that point that I feel like I am close but can't quite find what I am looking for! Thanks in advance!
↧