How do you change the direction of gravity?

I’m looking to make a multiplayer game where each character has a different gravitational pull. For instance, player 1 walks on the floor, while player 2 walks on the ceiling, player 3 walks on the east wall, etc. But I just can’t seem to figure out how to change the direction of gravity on any particular character. Any help is appreciated.

You can change the Vector3 direction of the gravity in Editor > Project Settings > Physics.


In your case, you want the Y axis to be positive ‘something’. 9.81 if you want real world physics - but going the other way.

The short answer is, you don’t use Unity’s world-gravity.

You code a gravity vector for each object in a script and, in the script’s FixedUpdate call back, you apply the vector times the elapsed time as force to your object.