Update Pitch40 to more efficient angles #5221
Open
+29
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Description
When Pitch40 mode is selected in ElytraFly, the player will now pitch down to 32-33 deg then after hitting the lower bound, will pitch at the supplied rate to -49 deg. Finally they will pitch down at roughly 0.5 deg/tick until looking at 32-33 deg. These angles come from the findings of this video where said angles are much more optimal than the standard 40/40 profile. Ideally this will net ~3 block of max altitude gain per cycle until ~90 block above the lower bound.
How Has This Been Tested?
In testing in a default superflat single-player world, where the player starts on a tower to y=13, pitch rate of 13, lower bound of -40 and upper bound of 0, the maximum height I achieved was roughly y=51.
Checklist: