Modifying Gravity

I have tried Google thy tell you hot modify the gravity but no how to quickly orientate the FPSController so that flips up the other way. Gravity is the main point of my project so I desperately need this to be the most detailed and most fun thing about the game.

By doing a simple ‘gravity’ search inside the Unity Script Reference, it returns Physics.gravity as the first hit.

http://unity3d.com/support/documentation/ScriptReference/Physics-gravity.html

You can also set the settings of overall gravity for your project inside the Project settings menu by going to:

Edit => Project Settings => Physics => Gravity

So, the question is really about rotating objects? Because when Peter made his anti-gravity birthday wish, Meg and Stewie just hit the ceiling head-first. Gravity didn’t flip them around.

Take a look at Quaternion.RotateTowards or Quaternion.Lerp. Lots of stuff about that in here. The gravity will be the new up-vector.