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

Raycast2D can't detect a collision when a moving platform does down quickly. #50465

Open
Tracked by #45334
fabriceci opened this issue Jul 14, 2021 · 2 comments
Open
Tracked by #45334

Comments

@fabriceci
Copy link
Contributor

Godot version

v3.4.beta.custom_build [b9ee64a24]

System information

MacOS 11.4

Issue description

Raycast2D can't detect a collision when a moving platform does down quickly.

raycastBug

Steps to reproduce

Run the project.

Minimal reproduction project

raycastBug.zip

@JestemStefan
Copy link
Contributor

I did a few tests and maybe it will help solve the issue.

  • When ray is longer then platform speed then it detects collisions correctly.
  • When player move in _process() instead of _physics_process() then it detects collisions correctly even with ray of length 35.

@Calinou
Copy link
Member

Calinou commented Jul 15, 2021

This is yet another physics tunnelling issue, which can be worked around by increasing the ray length based on speed or increasing Physics Fps in the Project Settings.

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

3 participants