How i can change the gravity direction ?

Hello everyone , i just want to ask you about the changing of the gravity direction …

i mean that i could walk on the roof or the wall , could i do that in Unity ?
i have watched a few videos and they were close to what i want , so i am assuming that Unity could do it.

so , tell how to make it , or post a link to tutorial :smiley:

NOTE: i use Javascript for scripting.

Physics.gravity = Vector3(0, yourVariable, 0);

Yes you can, easiest is to use the Physics-class and its variable gravity. Make sure that `rigidbody.useGravity = true` for the objects. But making a character walk on different surfaces demands something more than just a gravity switch. I'd lerp the character's direction in rotation (in reverse) to where the physics is drawn. You'd have to be a bit clever when you set the variables for moving around so it always is the local space in regards of gravity. Good luck!