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

Low velocity collision not reported when using move_and_collide in 2D physics #68334

Open
rokasv opened this issue Nov 6, 2022 · 0 comments
Open

Comments

@rokasv
Copy link

rokasv commented Nov 6, 2022

Godot version

Godot Engine v3.5.1.stable.official.6fed1ffa3

System information

Windows 10, OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2

Issue description

When an object is moved using move_and_collide with low velocity and collides with another object, the collision is not returned. The objects do not pass through each other, indicating the collision is detected, it is just not returned.

Similar problem was described in #62153, where this happens in 3D Bullet physics. Here, the issue is present in 2D physics.

Steps to reproduce

Project with the problem present: move_and_collide_problem.zip

Run the project, top box moves into the bottom box, but does not turn red (indication of returned collision).
However, if the velocity is increased in the KinematicBody2D object script, the box does turn red on collision.

Vector2.DOWN * 4 * delta and lower velocity does not trigger the collision response
Vector2.DOWN * 5 * delta and higher velocity does

The problem does not exist in 3.4.4

Minimal reproduction project

No response

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

2 participants