-
Notifications
You must be signed in to change notification settings - Fork 99
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
Change gravity type to float #832
Conversation
The fact that the data type is wrong is correct, but the fact that you fixed it with a number (0.008) is wrong. I already mentioned in the Issue that there is a parameter I think the main problem lies in the data type, which was set incorrectly, because of which the |
Thank you for your feedback. Regarding the instances where I used 0.008f in the code, please note that these values are not intended for actual use; rather, they are included solely for resetting player variables. The default value (specified in config.json) will be applied each time a player is initialized. You can find the relevant implementation here: link to the code. |
In my opinion it is better to use |
You are probably right; the only reason I set it to 0.008 is because I saw in the documentation that the default value is 0.008. However, upon further consideration, it makes sense for it to be 0.0. |
@shierru is correct about using the config value. As it stands now calling |
I don't know how to reproduce that issue. Here are the things I did:
What did I miss? |
You didn't miss anything - the gravity is already set to the config one in onPeerConnect() |
#829