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

Fixed collision end and start discontinuity #109

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

MarcusLongmuir
Copy link
Contributor

This PR fixes an issue where the user's avatar would semi-regularly end the collision with a surface it was standing on and then after skipping a tick start the collision again. This is caused by minor floating point inaccuracies that add up after multiple ticks.

The fix applied is to accept a one tick grace period for ending collisions where if the collided element only skips one tick then the collision is not ended.

What kind of change does your PR introduce? (check at least one)

  • Bugfix

@TheCodeTherapy TheCodeTherapy merged commit 8ac7fdd into main Feb 21, 2024
5 checks passed
@MarcusLongmuir MarcusLongmuir deleted the bugfix/collision-discontinuity branch February 21, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants