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

Implement pause-aware picking (3.2) #39421

Merged
merged 1 commit into from
Feb 9, 2021

Commits on Feb 8, 2021

  1. Implement pause-aware picking

    This adds a new project setting (`physics/common/enable_pause_aware_picking`). It's disabled by default.
    
    When enabled, it changes the way 2D & 3D physics picking behaves in relation to pause:
    - When pause is set, every collision object that is hovered or captured (3D only) is released from that condition, getting the relevant mouse-exit callback., unless its pause mode makes it immune from pause.
    - During the pause. picking only considers collision objects immune from pause, sending input events and enter/exit callbacks to them as expected.
    - When pause is left, nothing happens. This is a big difference with the classic behavior, which at this point would process all the input events that have been queued against the current state of the 2D/3D world (in other words, checking them against the current position of the objects instead of those at the time of the events).
    RandomShaper committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    745c711 View commit details
    Browse the repository at this point in the history