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 between circle and box can be missed #372

Open
mqnc opened this issue Nov 26, 2023 · 0 comments
Open

Collision between circle and box can be missed #372

mqnc opened this issue Nov 26, 2023 · 0 comments

Comments

@mqnc
Copy link

mqnc commented Nov 26, 2023

image

In the depicted case, the collision is missed. For each edge of the convex shape (box), the engine looks for the point on the circle that is furthest in the direction which is normal to the edge and checks whether it is inside the convex. This is not the case for any edge in the depicted scenario. It will successfully detect the collision if the circle slowly moves into the box but if the circle exceeds the back wall of the box in one step, the collision will be missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant