Comments and answers for "Moving an object in camera direction?"
http://answers.unity.com/questions/53801/moving-an-object-in-camera-direction.html
The latest comments and answers for the question "Moving an object in camera direction?"Comment by Johan 4 on Johan 4's answer
http://answers.unity.com/comments/106713/view.html
Using this camera view angle seems to affect the move speed because it also takes rotation into consideration.Wed, 23 Mar 2011 03:24:34 GMTJohan 4Comment by Johan 4 on Johan 4's answer
http://answers.unity.com/comments/106712/view.html
This gives me forward in rotation and position which breaks stuff and makes forward not forward and whatnot.
If I try transform.position.forward, it complains about some not access stuff.Wed, 23 Mar 2011 03:22:24 GMTJohan 4Comment by DaveA on DaveA's answer
http://answers.unity.com/comments/106711/view.html
That's 'normalized' direction. If you multiply that vector by a number (where 1 = 1 meter), it will give you that distance in that direction.
Actually for you, you might want to subtract the object's transform.postion from the Camera.main.transform.position, then normalize that, to get the direction from the object's origin to the camera. Then multiply that normalized vector by the amount you want to use and add that vector back to the object's transform.position (or call transform.Translate())Wed, 23 Mar 2011 03:13:44 GMTDaveAComment by Johan 4 on Johan 4's answer
http://answers.unity.com/comments/106710/view.html
No idea how to use this at all. It outputs something from 0 to 1 and I have no idea how to move my object in that...Wed, 23 Mar 2011 03:01:56 GMTJohan 4Answer by DaveA
http://answers.unity.com/answers/53806/view.html
<p>Camera.main.transform.forward is where it's looking. You could translate your object along the negative of that, or move the camera forward.</p>Tue, 22 Mar 2011 22:17:06 GMTDaveA