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

Continuous Collision Detection no longer works with high speed body #70154

Closed
fabriceci opened this issue Dec 16, 2022 · 1 comment · Fixed by #70160
Closed

Continuous Collision Detection no longer works with high speed body #70154

fabriceci opened this issue Dec 16, 2022 · 1 comment · Fixed by #70160

Comments

@fabriceci
Copy link
Contributor

Godot version

4.0 (2e657e5)

System information

macOS 12.6

Issue description

Seems that #69934 introduce a regression.

The CCD test (in my physical test project) fails after this commit. In both 2D/3D :

Before:

Screenshot 2022-12-16 at 17 56 26

After:

Screenshot 2022-12-16 at 17 44 47

@Geekotron could you take a look?

I am not familiar with this algorithm, it seems to be related to from -= motion * 0.1;. (note, in 2D, if we lower 0.1 to 0.01, seems to help)

Steps to reproduce

Open the physics test project: https://github.com/fabriceci/Godot-Physics-Tests

Open the scene:

  • in 2D: tests/nodes/RigidBody/tests/2d/conntinuous_detection.tscn
  • in 3D: tests/nodes/RigidBody/tests/3d/conntinuous_detection.tscn

And run the scene.

Minimal reproduction project

/

@Geekotron
Copy link
Contributor

Checking it out now.

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.

2 participants