You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Describe the bug
When setting the gravity at runtime through PhysicsServer2D, nothing happens. With the exact same setup, switching back to GodotPhysics, the gravity is changed as expected. I'm not sure if there is a way to change the gravity through a different part of the API, so if that could be provided, I'd be grateful.
To Reproduce
Create new project
Add a physics body that would be affected by gravity
In a script add: PhysicsServer2D.area_set_param(get_viewport().find_world_2d().space, PhysicsServer2D.AREA_PARAM_GRAVITY, 0) (the code suggested by Godot docs)
Expected behavior
The gravity should change to the value (in my case 0) through use of the normal Godot API
Versions (please complete the following information):
OS: Windows 11
Godot v4.2
Box2d v0.9.9
The text was updated successfully, but these errors were encountered:
Describe the bug
When setting the gravity at runtime through PhysicsServer2D, nothing happens. With the exact same setup, switching back to GodotPhysics, the gravity is changed as expected. I'm not sure if there is a way to change the gravity through a different part of the API, so if that could be provided, I'd be grateful.
To Reproduce
PhysicsServer2D.area_set_param(get_viewport().find_world_2d().space, PhysicsServer2D.AREA_PARAM_GRAVITY, 0)
(the code suggested by Godot docs)Expected behavior
The gravity should change to the value (in my case 0) through use of the normal Godot API
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: