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

Vertical collision with one way collision platform when colliding with another body to the side #43973

Open
Tracked by #45334
Rhathe opened this issue Nov 30, 2020 · 2 comments

Comments

@Rhathe
Copy link
Contributor

Rhathe commented Nov 30, 2020

Godot version:

3.2.3

OS/device including version:

Windows 10

Issue description:

There is a vertical collision as it goes up through a one way collision platform when it also collides with another body on top of the one way platform, leading to the kinematic body stopping completely instead of sliding up. In a platformer, this can lead to jumping through a one way platform, colliding with an NPC, and dropping immediately instead of sliding up the NPC collision box.

bug

What's expected is that the body stops horizontal movement but continues sliding up, shown when you disable the one way collision platform.

onewaybodydisabled

Steps to reproduce:
Run the project.

Minimal reproduction project:

test_move_one_way_body_on_top.zip

@Rhathe
Copy link
Contributor Author

Rhathe commented Nov 30, 2020

Note: This not quite the same issue as #25967 and #43012, as removing the body on top of the one way platform lets the kinematic body pass through the one way platform, and removing the one way collision from the platform has the kinematic body collide as expected with the platform by sliding up instead of hugging the top of the platform.

Body on Top of Platform Disabled One Way Collision Removed
bodydisabled onewayremoved

@Rhathe
Copy link
Contributor Author

Rhathe commented Nov 30, 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