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

Moving through one way platforms jumps KinematicBody2D by one way margins #42914

Open
Tracked by #45334
Rhathe opened this issue Oct 19, 2020 · 1 comment
Open
Tracked by #45334

Comments

@Rhathe
Copy link
Contributor

Rhathe commented Oct 19, 2020

Godot version:

3.2.3

OS/device including version:

Windows 10

Issue description:

When a KinematicBody2D moves through a one way platform, it can get extraneous positioning against the one way direction, causing a sudden jumping effect. The test project shows this by having two KinematicBody2Ds with different masks/layers going through multiple layers of one way platforms each with a one way collision margin of 1. Only one of the KinematicBody2Ds is set to collide with the platforms. The KinematicBody2D that collides with the platforms gets pushed up vertically each time it passes through a platform, while the non-colliding KinematicBody2D goes in a completely straight line, which should be the expected behavior of both of them. The final layer has a one way collision margin of 16, showing a much bigger jump.

popup

Steps to reproduce:
Run the test project.

Minimal reproduction project:

test_move_one_way_snapping.zip

@Rhathe
Copy link
Contributor Author

Rhathe commented Oct 19, 2020

This should be fixed by #38471

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants