Fix character not sliding on slopes when stop_on_slopes
is false
.
#99731
+18
−2
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.
Allows the character to slide on the floor as a result of downwards vertical velocity if
stop_on_slopes
is set tofalse
.Fixes 83673
The change is very small, as the issue was that
stop_on_slopes
was simply not being used at all when handling sliding on slopes.TODO:
-Check if the same problem exist in 2D and implement the same fix.
Pre PR:
stop_on_slopes
has no effect at all on stopping on slopes.2024-11-27.00-53-52.mp4
Post PR:
The character slides as expected.
2024-11-27.00-50-10.mp4
NOTES:
Q: Why the character was sliding a super tiny bit if we didn't had the functionality in the first place?
A: Because
p_cancel_sliding
is used wrong in various places (Similar case to #99397), I hope to address that soon.MPR:
stop_on_slopes_fix.zip