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

[3.x] Fix multiple issues with test_body_motion() and test_body_ray_separaton(). #37498

Closed
wants to merge 1 commit into from

Commits on Jan 10, 2021

  1. Fix multiple issues with test_body_motion() and test_body_ray_separat…

    …on().
    
    The test_body_motion() and test_body_ray_separation() functions perform an
    initial recovery step to attempt to move the body to a safe place before
    testing whether the body can safely move. Currently this is done in four
    partial steps, and during each step the detected penetrations are reversed
    by summing them together.
    
    This patch changes this approach to a single step and uses the maximum
    penetration instead of the sum. The same approach is applied to Godot
    Physics 2D, 3D and Bullet Physics, and to both CollisionShapes and
    RayShapes.
    
    Also, fixes Bullet physics not detecting collisions and relying on the
    recovery step. Furthermore, ensures that Bullet physics only moves a
    safe amount by using a binary search as done in Godot physics.
    madmiraal committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    7e0b110 View commit details
    Browse the repository at this point in the history