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 between moving KinematicBody nodes is broken #46601

Closed
e344fde6bf opened this issue Mar 2, 2021 · 1 comment
Closed

Collision detection between moving KinematicBody nodes is broken #46601

e344fde6bf opened this issue Mar 2, 2021 · 1 comment

Comments

@e344fde6bf
Copy link
Contributor

e344fde6bf commented Mar 2, 2021

Godot version:
3.2.3.stable

OS/device including version:
Arch Linux

Issue description:

When KinematicBody nodes test for collisions, they test against the positions objects had at the start of the physics frame. This causes problems when they are both moving as they can end up overlapping without detecting any collisions. Here is a proposal that discusses this issue in more detail.

Steps to reproduce:

Place two cubes next to each other and use move_and_collide() towards the same position on the same physics frame. This is what happens:

test-collision

Minimal reproduction project:

test-collision.zip

@madmiraal
Copy link
Contributor

Duplicate of #30481.

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

4 participants