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

Collision detection not always working using move_and_collide on KinematicBody2D with save_margin at 0.001 #36432

Closed
Tracked by #45334
marzecdawid opened this issue Feb 21, 2020 · 3 comments · Fixed by #52953

Comments

@marzecdawid
Copy link
Contributor

marzecdawid commented Feb 21, 2020

Godot version:
3.2 stable

OS/device including version:
Windows 10 x64

Issue description:
Video showing the problem.
Collision detection is not always working using two KinematicBody2D objects with save_margin set to very low value like 0.001-0.004. In the gif above all three objects have save_margin at 0.001 and the only difference is a starting position.

Minimal reproduction project:
CollisionBug.zip
Don't forget to enable collision drawing in debugging menu.
Press up arrow key to move objects.

@marzecdawid marzecdawid changed the title Collision detection not working using move_and_collide on KinematicBody2D with save_margin at 0.001 Collision detection not always working using move_and_collide on KinematicBody2D with save_margin at 0.001 Feb 21, 2020
@marzecdawid
Copy link
Contributor Author

marzecdawid commented Feb 22, 2020

Retested on other versions:
3.2.1: problem is present
3.1.2: problem is present
3.0.6: wasn't able to reproduce the bug

@akien-mga
Copy link
Member

Still reproducible in a18df71 (3.2).

@madmiraal
Copy link
Contributor

Fixed with #43616 and its 3.2 version #43617.

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