Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2D Default Gravity Vector - X component not working. (not loaded properly?) #5477

Closed
rgrams opened this issue Jun 29, 2016 · 3 comments
Closed
Milestone

Comments

@rgrams
Copy link

rgrams commented Jun 29, 2016

Operating system or device - Godot version:
Windows 7, 64 bit. Tried with 2.0.3 stable official, and recent June builds.

Issue description (what happened, and what was expected):
If I set the default gravity vector in Project Settings >> Physics 2d to have any non-zero x component, it does not function when I play the game. The gravity in y works, but nothing in x. Actually it worked right once, but that's never happened again it at least a dozen tries. When the editor is restarted, the x component is reset to zero. However, if I open the engine.cfg file in a text editor, it seems to have the correct values: "[physics_2d]default_gravity_vector=Vector2(0.17, 0.26)" or whatever.

@reduz
Copy link
Member

reduz commented Jul 7, 2016

there is a problem with the current code for engine.cfg loadin/saving that does not support vector2, in Godot 3.0 we'll move the parsing of this configuration file to VariantParser so all settings like this should work, but in the meantime there is no fix :( you'll have to use code. Very sorry :(

@reduz reduz modified the milestones: 3.0, 2.1 Jul 7, 2016
@bojidar-bg
Copy link
Contributor

I think this was fixed already in 2.2, is this correct? 😃

@reduz
Copy link
Member

reduz commented Aug 5, 2017

this is fixed, closing

@reduz reduz closed this as completed Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants