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

Throttling frame rate for consistent ball animation #167

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

sakatam
Copy link
Contributor

@sakatam sakatam commented Oct 1, 2022

This is a fix for the ball speed issues (#94 and #119).

  • Adding a frame rate throttle (max 24 fps)
  • Also adjusted the initial velocities and gravity to make it work naturally with the frame rate.
Screen.Recording.2022-09-30.at.8.44.08.PM.mov

The frame rate no longer goes up after throwing ball multiple times.

Thank you for the great extension!

@tonybaloney
Copy link
Owner

This is awesome! Thanks for the contributing and recording a demo of the fix 👍🏻

@tonybaloney tonybaloney merged commit a944134 into tonybaloney:master Oct 1, 2022
This was referenced Oct 7, 2022
tonybaloney added a commit that referenced this pull request Feb 26, 2023
Throttling frame rate for consistent ball animation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants