switching direction of gravity

I need a method of switching the direction of gravity on my first person character. the concept is that there is a wall to the right of my character and i want to be able to push a button so he is able to run on the wall. I want the main camera and character to rotate so that it appears that the wall is actually the ground now, and the original ground is now the wall. Basically, I need gravity to switch directions somehow so my character falls and rotates toward the wall.

Have a script that attaches to an object with a rigidbody (make sure you unchecked “Use Gravity” in the rigidbody settings). It can have a public var to control the direction of gravity. In fixedupdate, apply the force in the direction of gravity and also use either LookRotation or FromToRotation to align the player character to the gravity direction. There are samples floating around If you search for unity3d faux gravity on Google. Hope this helps.