Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Anutrix | |
Old Version | Published before Godot 3 was released. |
What I want is to get current gravity direction? Is there something like Physics2DServer.get_gravity_vector() .
I tried Physics2DServer.space_get_param(get_world_2d().get_space(), Physics2DServer.AREA_PARAM_GRAVITY_VECTOR)
but gives a float value 1.5 not gravity direction vector.