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

Fix boats not receiving input in 2021 #935

Closed
wants to merge 2 commits into from

Conversation

daleeidd
Copy link
Collaborator

The following setting is also in 2020, but for some reason input still worked even though we were reading input in FixedUpdate and the default is DynamicUpdate.

This PR respects this setting by reading input in either Update or FixedUpdate depending on chosen mode. This is pretty rough but will be implemented nicer with #486.

We did not respect the "update mode" setting but it worked before 2021.2
for some reason.

Input in "update" looks to be the default so this will cover us for now.
@daleeidd daleeidd added the Bug label Oct 26, 2021
@daleeidd daleeidd requested a review from huwb October 26, 2021 23:36
Copy link
Contributor

@huwb huwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that it breaks. I would have thought that reading it in the wrong update would put you at risk of getting old input values from last frame, in the wrist case. But this implies you get no input at all? That seems wrong..

@huwb
Copy link
Contributor

huwb commented Oct 27, 2021

Have others had to add two update functions as well, are you aware? These add significant runtime cost so it seems a bit crazy to me if everyone is going to have to do this.

@daleeidd
Copy link
Collaborator Author

True... I checked the forum and looks like the next version of the input package fixes it. It's not available yet from what I could see. Will close this.

@daleeidd daleeidd closed this Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants