I want to cast a ray from the front of the object. I’m new to unity scripting, so I’m not sure how to do this. I’m guessing it has something to do with the transform.position; basically I want to get transform.position, and add a bit more to find a point moved along the axis. How do I go about this? I work in C#.
It has to do with raycast.
http://unity3d.com/support/documentation/ScriptReference/Physics.Raycast.html
It is all there. You need to tweak the script to c#.