How can I make my material rotate to always face the ground

My character snaps into different surfaces with different gravity properties