Hi,
I want to get a sphere from outside the screen - say from top of the screen. Now what I do know is -
- it’s a kind of 2d game so i’m going to use orthographic camera.
- for the background, for now, m using a plane.
- I can create game objects from the script using the createPrimitive function.
What I don’t know is how can i determine from inside the code that which point will lie outside my screen ( iphone screen ), so when the object is created and dropped from the top of the screen ( iphone screen ) it gives us a feel that it’s coming from out side the screen.
Do we have any provision (in the editor) by which can give us the world co-ordinate for the point pointed by the mouse?
Or can we define some kind of bounds and can get co-ordinate info of that bounds which in turn can be used for creating the spheres?
Thanks.