This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Disclaimer: I'm a bloody beginner.

Where in the code would I start to introduce this concept?:

enter image description here

Any player can walk up on the inside planes of a giant cube, switching the gravitational direction.
Upon switching the player can walk, jump, shoot/throw on his plane as if it was the "correct" gravity , but other players remain on their gravity plane, walking, jumping and shooting with their own interpretation of what is down.

I fear Godot assumes there is only one gravity (pointing downwards) in many prebuilt functions that are commonly used in physics, player movement and so on…

Godot version 3.2
in Engine by (20 points)

2 Answers

+1 vote

You can override default project's (adjustable) gravity with Area.

Also, for a specific bodies you can disable gravity completely (by setting gravityscale = 0) and apply force/impulse manually, in physicsprocess.

by (1,646 points)
+1 vote

You can achieve it using Local and global spaces in the godot editor. By using local space, when you rotate the object the object along with its axes would rotate
enter image description here

by (942 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.