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 errors in KinematicBody when floor is destroyed or removed #54819

Merged

Commits on Nov 9, 2021

  1. Fix errors in KinematicBody when floor is destroyed or removed

    In all physics servers, body_get_direct_state() now silently returns
    nullptr when the body has been already freed or is removed from space,
    so the client code can detect this state and invalidate the body rid.
    
    In 2D, there is no change in behavior (just no more errors).
    
    In 3D, the Bullet server returned a valid direct body state when the
    body was removed from the physics space, but in this case it didn't
    make sense to use the information from the body state.
    pouleyKetchoupp committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    b93aeec View commit details
    Browse the repository at this point in the history