Gravity Switch (DEMO)

Change the direction of the scene gravity using gravity switches.



Use the keyboard arrows to move the Ball around, use the space bar to jump.

There are six gravity switches, each gravity switch can change the scene gravity along the world x,y and z axis ; Roll the Ball over the gravity switches to change the direction of gravity.

############ Download ############

Updated the 15th of December : Gravity Switch

############ Python ############

The blend comes with two scripts, “Player.py” and “SceneController.py”
I would of liked to give an in depth description of what these scripts do, but as I am not a coder I will leave that aside for now ; A big thanks to “Brunfunstudios” for making the python scripts.

is it possible to change a single object’s gravity with this tool?

No, this kind of setup changes the scene gravity ?! but I must admit that being able to change a single object’s direction of gravity would be very useful…

Hello!

Nice file (game)!

You can set the scene gravity like that too:

http://www.mediafire.com/download/ycebdbz351dcugt/setGravity.blend

ZSQD to change gravity.

http://www.blender.org/api/blender_python_api_2_72b_release/bge.types.KX_Scene.html?highlight=gravity#bge.types.KX_Scene.gravity

Have a good day!

Thanks “youle” for the tips ! I will try to improve this thread…