Like a passive self-righter, using gravity?

I have thought about stuff like that, but I cant figure out how to design them..