Whats the JavaScript for making a ball roll?

Plus how can i make it look really realistic? Like on a tilting marble game for iPod touch.

Thank you for the help!

the rigidbody physics for this works really much like you want, so there is no script for it, if you want to make a script you can change the ball position and rotate the ball towards the new position it will get, making the look like the ball is rolling anyway try to use the rigidbody first, if you are not convinced, try coding it like that hope this helps

im not wonderful at scripting but you could proboably use a transform.translate and a transform.rotate at the same time to get it rolling in the right direction. you might have to set the translate and rotate to different speeds to make it realistic. hope this helps some!