how to move the player on a sphere or cube?

hi there!

I want to let the player walk on a sphere and then on a cube without falling down. how could I realise that? anyone?

thanx!

The locomotion demo found on the unity website has a demo of this called planet walker.