Since I can’t get the sample script in the documentation to work, does anyone have any code handy for moving something around the screen in 3D?
I don’t need to move objects closer or farther away from the camera but I do have objects I want the player to be able to drag left and right when they drag their finger across them.
For example, if you had a stack of blocks in a 3D scene, I want the player to be able to drag their finger through the stack and knock the blocks over.
Does anyone have any scripting handy for translating touches into 3D space? The documentation sample code locks up my app and I’m looking for something that works. Touch translation is quite important to being able to use Unity as you can imagine. 
You should read up in the Unity manual on rays 
As I said before, the example in the Unity Manual locks up the device. Asking me to read up on rays doesn’t help when the sample code doesn’t work, right?
I’m reading in: Unity Manual->Getting Started with iPhone Development->iPhone Scripting->iPhone unique input system. You would think that example would work? Or am I doing something wrong with it?
Thanks.
maybe checkout the iphone example projects, there is also a project called touch phases, maybe thats what your looking for. Also checkout the other examples.
and also the penelope tutorial could be helpful for you.
http://unity3d.com/support/resources/tutorials/penelope
Thanks guys. I ended up pulling code from the penelope scripts to figure out how to do it. 