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

Improve per-frame position saving #27

Open
kjack9 opened this issue Aug 8, 2016 · 0 comments
Open

Improve per-frame position saving #27

kjack9 opened this issue Aug 8, 2016 · 0 comments

Comments

@kjack9
Copy link
Member

kjack9 commented Aug 8, 2016

Positions are currently added to the cache if the player has moved at least rewindMinDistanceChangeToSavePosition world units since the last saved position. However, if the player is moving fast and has moved say 2x that distance, only one position is added to the cache.

The result is that if a player is going fast enough, they can go farther into an out-of-bounds area than if they were going slowly.

Implement a system that accounts for this difference, and consistently rewinds the player at the same point regardless of speed.

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

1 participant