What would be the best way to invert gravity

Godot Version

4.1.3

Question

So I have a cube that can be placed on a button. Putting it on the button is supposed to invert gravity, so the player falls up. What would be the best way to do this?

If you’re using a characterbody2d, you can just start subtracting gravity (if you’re in 2d) or adding gravity (if you’re in 3d) instead.

position.y-=1 ## or whatever "gravity" variable you are using

I would also be interested in this.
I tried to invert physics for all objects in my world.

ProjectSettings.set_setting(“physics/3d/default_gravity”, -9.8)
and It seems that it is changing the gravity but it won’t accelerate standing objects away from the ground.

Any idea how I could do this?
I want all physics objects to “fall into the sky”.

Thank you