What is the best way to add a controller script to a sphere ?!

Im wanting to use a sphere as my main character in a game. IE: A Ball

I know il have to attach a ridgidbody to the sphere and other coliders etc

But where im stuck is the scripting, id like to make the ball roll around using w,a,s,d or arror keys etc..

please help.. thankyou.

You may need to use forces and a rigidbody rather than a character controller yes. Usually it is quite the opposite, so quite an interesting question!

Here's a script reference to help with the rigidbody, particularly the AddForce and AddTorque are interesting

Torque helps with rotating stuff around, and using just force on a ball should help with movement.

Getting any kind of realism on other objects you may need to give them rigidbodies aswell and start rolling stuff over like bowling. Go fiddle with that and see how far you get. Let me know it turns out if you will please :) Quite interested in this.

For that you need to make a script.

Look up on the unity script documentation. http://unity3d.com/support/documentation/ScriptReference/index.html

And a Javascript (Unityscript) tutorial from the wiki http://www.unifycommunity.com/wiki/index.php?title=Head_First_into_Unity_with_JavaScript

And another Unityscript tutorial: http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)