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

[3.x] Fix move_and_collide causing sliding on slopes #49902

Conversation

pouleyKetchoupp
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp commented Jun 25, 2021

Make sure the direction of the motion is preserved in move_and_collide, unless the depth is higher than the margin, which means the body needs depenetration in any direction.

Credits to @fabriceci for investigating move and slide issues and helping with extensive testing.

3.x backport of #49901 (see more details there).

@pouleyKetchoupp pouleyKetchoupp added this to the 3.4 milestone Jun 25, 2021
@pouleyKetchoupp pouleyKetchoupp requested a review from a team June 25, 2021 02:53
@pouleyKetchoupp pouleyKetchoupp requested review from a team as code owners June 25, 2021 02:53
@pouleyKetchoupp pouleyKetchoupp force-pushed the move-and-collide-fix-slide-3.x branch 2 times, most recently from 7173eb1 to 5cccae9 Compare June 26, 2021 04:14
@pouleyKetchoupp pouleyKetchoupp marked this pull request as draft June 26, 2021 16:27
@pouleyKetchoupp
Copy link
Contributor Author

Converted to draft because on second thought, this could be too big of a change to be backported to 3.x. Once move_and_slide is more stable on 4.0 we can re-assess this PR and decide how much can be backported without too much risk.

@pouleyKetchoupp pouleyKetchoupp force-pushed the move-and-collide-fix-slide-3.x branch from 5cccae9 to 68897dd Compare June 29, 2021 00:18
Make sure the direction of the motion is preserved, unless the depth is
higher than the margin, which means the body needs depenetration in any
direction.

Also changed move_and_slide to avoid sliding on the first motion, in
order to avoid issues with unstable position on ground when jumping.

Co-authored-by: fabriceci <[email protected]>
@pouleyKetchoupp
Copy link
Contributor Author

Closing in favor of #50495, which also includes more recent fixes.

@pouleyKetchoupp pouleyKetchoupp deleted the move-and-collide-fix-slide-3.x branch July 15, 2021 16:59
@aaronfranke aaronfranke removed this from the 3.4 milestone Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants