How do you change global gravity properties from code at runtime?
Thought it might be possible from a custom integrate_forces
method where the physics state is passed to you, but only see get_total_gravity()
; no setter there. Was hoping gravity could be accessed/changed from a normal fixed_process
method.
Thought there may be a way to reference a "default" Area2D in a scene which would also allow gravity to be changed, but can't find a way.
Is there an easy way to do this, before I kludge something together with these various options?