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

Roughly Perpendicular Collisions with Concave Polygon are not detected and stick #74756

Closed
cuppajoeman opened this issue Mar 11, 2023 · 4 comments · Fixed by #74861
Closed

Roughly Perpendicular Collisions with Concave Polygon are not detected and stick #74756

cuppajoeman opened this issue Mar 11, 2023 · 4 comments · Fixed by #74861

Comments

@cuppajoeman
Copy link

Godot version

4.0.stable

System information

Windows 10

Issue description

When you launch (apply_impulse) a RigidBody3D (sphere_shape) in a line which is roughly perpendicular to a wall (StaticBody), it collides with the wall, on_body_entered is never called and the RigidBody3D sticks to the wall.

I noticed this after updating to godot 4 stable, I don't think the issue exited in the RCs or betas.

Video showing it: https://streamable.com/lr0ydn

Steps to reproduce

Launch the minimal reproduction project, then aim at a wall in so that a raycast coming out of the center of your screen would be roughly perpendicular to the wall or floor, upon firing, the projectile simply just sticks onto the wall and on_body_entered is never called.

Minimal reproduction project

projectile-collision.zip

@rburing
Copy link
Member

rburing commented Mar 11, 2023

This is likely due to my change to trimesh CCD which was part of #72917, sorry about that. I'll investigate.

@cuppajoeman
Copy link
Author

Just FYI, I found this bug when I launched my fps game in godot 4 stable for the first, time. I noticed it because in general rockets were sticking to the ground and walls. Pretty much I think this would affect anyone who has an fps using a projectile
which is a RigidBody3D and a map which has a Concave Polygon.

@cuppajoeman
Copy link
Author

I'm not too familiar with the timeline or how regressions work, I'm guessing this fix wouldn't be available until the next version of godot 4 (4.1) releases?

@Calinou
Copy link
Member

Calinou commented Mar 14, 2023

I'm not too familiar with the timeline or how regressions work, I'm guessing this fix wouldn't be available until the next version of godot 4 (4.1) releases?

The fix can be cherry-picked to a future 4.0.x release.

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

Successfully merging a pull request may close this issue.

4 participants