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

move_and_slide_with_snap will let player glitch into one-way collision slope tile occasionally #56616

Closed
yikescloud opened this issue Jan 8, 2022 · 2 comments

Comments

@yikescloud
Copy link

Godot version

3.4.2 stable

System information

windows 10

Issue description

If you make a one one collision slope tile, and let your player move with snap, and if you turn your player just at the border between tiles(keep press "A" and "D" on slope), the player will glitch into the slope.
Just like this
image

Steps to reproduce

1.Make a tilemap with a one way collision tile
2.Make a kinematicbody2d player
3.let player move_and_slide_with_snap
4.Play your game, and keep press left and right when player on the slope

Minimal reproduction project

OneWaySlopeBug.zip

@timothyqiu
Copy link
Member

See also: #42916

@yikescloud
Copy link
Author

image
increase collision margin can fix the problem

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