Cursor over mesh?

I’m working on a project where I need to move the mouse cursor over a mesh, and move it to trigger an animation. I am going to be making this application for the IPhone as well. Ive been using Unity for a little under a year now, but haven’t learned too much aside from basics. I have found a few threads about the mouse over, they all use raycast and I’m having trouble with it. The only language I know is javascript, so I’m afraid I am in a pickle. If anyone knows, or has pointers on how to do any of these, I would really appreciate it!

Detect that the cursor is over a mesh.
Change the icon for the cursor
A basic tutorial on how to script the touch screen for the IPhone.

I would really love to learn these things, I think they are needed for making more apps, but I haven’t figured much out through searching the forums!

EDIT:
Ive been trying to get the OnMouseDown function to work, but I am not having any luck! I am also using the indie version of unity, I’m not sure if that effects this situation.

The logic is that if you draw a line from the camera to the mouse pointer and extend it for a reasonable length after the mouse pointer you can tell when the mouse is ‘Over’ an object.

Try to do this with a red line (Think laser pointer).

What results do you get?

Sammuual

I hate to sound like I have never touched Javascript or Unity, but I have no idea how to draw a line in Unity, let alone make it attach to the mouse pointer!
Do you know if there is a tutorial that has this in it? I really don’t like to seem like I’m just asking for answers without looking for them first!

You don’t actually need to do any raycasts yourself to do this - if you attach a collider and a simple script to each mesh you want to trigger, you can just overload OnMouseOver in that script to trigger your animation, hide the cursor, or even just send a message to another script indicating that it’s been triggered.

Thanks! after a bit of tinkering around I finally got it. Now I know how to work the mouseover functions, and figured out the dragrigidbody script all in one!

now, anyone know of any tutorials for iphone apps? thats completely new to me!

EDIT
Never mind, i feel like a fool! I looked around the unity site and found some!