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

Fix Rayshape not working properly in move_and_slide and move_and_slide_with_snap #45005

Closed

Commits on Jan 8, 2021

  1. Fix Rayshape not working properly in move_and_slide

    These changes improve Rayshape behavior for Godot Physics 2D and 3D
    when using move_and_slide with and without snapping.
    
    Kinematic margin is now applied to ray shapes when handling snapping
    collision tests and separation raycasts to help getting consistent
    results in slopes and flat surfaces.
    
    Recovery is calculated without the margin and a depth of 0 is still
    considered a collision to stabilize results when on flat surface.
    
    Recovery is split based on the amount of shapes to fix cases where
    multiple rayshapes would cause the body to bounce.
    
    Fixes godotengine#34098
    Fixes godotengine#34663
    pouleyKetchoupp committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    a3d8043 View commit details
    Browse the repository at this point in the history