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

Add velocity indicator. #78

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Add velocity indicator. #78

merged 3 commits into from
Jul 3, 2024

Conversation

Vinjul1704
Copy link
Contributor

This commit adds a velocity indicator, which simply calculates the distance between the character positions from the previous and current frame.

It shows 3 different values:

  • [XYZ] Velocity with all 3 coordinates.
  • [XZ] Velocity with only the X and Z coordinates, so the Y coordinate (or height) is ignored.
  • [Y] Velocity of only the Y coordinate (or height).

The reason for that is that depending on what you want to test, you might not want the Y to be included in the calculation (or want only that one). This is useful for testing on slightly uneven ground or to check the horizontal distance covered when falling or jumping, for example.

I also squeezed in 2 minor tweaks:

  • Change the position indicator to show 3 decimal places instead of only 2, for slightly better accuracy.
  • Disable a bunch of indicators by default in the config file. This is to restore the default set of enabled indicators from before I added a few. It also matches the hardcoded fallback set now.

@veeenu veeenu merged commit 22937a5 into veeenu:master Jul 3, 2024
1 check passed
@veeenu
Copy link
Owner

veeenu commented Jul 3, 2024

LGTM, thank you Vir 🙌

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