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

More accurate calculation for recover motion in test_body_motion #45643

Closed

Conversation

pouleyKetchoupp
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp commented Feb 1, 2021

Extracted from PR #35945 by @madmiraal

Using min/max from different axes instead of adding recovery vectors together in order to avoid cases where the recovery is too high when colliding with several shapes at once along the same direction.

PR on 3.2 branch: #45644


Tests for 2D using https://github.com/godotengine/godot-demo-projects/tree/master/2d/physics_tests:

One Way Collision:
No regression.

Character - Tilemap:
No regression.
KinematicBody2D with ray shapes is not working properly with on-way collision, but that was already the case before.
Floor is detected consistently with ray shapes, prevents some jittering.

Character - Slopes:
No regression.
Floor is detected more consistently with ray shapes (still not perfect).

Tests for 3D (we don't have character controller tests in 3D in the test framework yet):

Test #33833 using MRP:
No regression.

Test #34081 using MRP from #35945 (comment):
No regression.

Test with more than 4 colliding bodies from a modified version of the same project:
No regression. This case was actually already fixed by #42574.

Extracted from godotengine#35945

Using min/max from different axes instead of adding recovery vectors
together in order to avoid cases where the recovery is too high when
colliding with several shapes at once along the same direction.

Co-authored-by: Marcel Admiraal <[email protected]>
@akien-mga
Copy link
Member

Is this superseded by #46148, or are there still changes in this PR that should be merged?

@pouleyKetchoupp
Copy link
Contributor Author

It's superseded by #46148, closing.

@pouleyKetchoupp pouleyKetchoupp deleted the better-recovery-motion branch February 18, 2021 15:49
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