This plugin is now officially planned to be upstreamed into Bevy. This will require the
bevy_eventlistener crate is also upstreamed, and a few critical features added or changed based on
feedback from Bevy's BDFL. Many of the sub-crates in this repo are not appropriate for upstreaming,
and will remain here. This includes things like the egui or rapier backends, or the highlighting
crate.
The intent is to upstream bevy_eventlistener and bevy_picking_core to be included in Bevy
0.14, time permitting.
Known bugs:
The bevy_ui debug overlay is broken until bevyengine/bevy#12268 is
released as part of bevy 0.13.1.
Changes:
New bevy_xpbd backend
Added: bevy_xpbd_3d picking backend, available behind the optional backend_xpbd feature.
Automatic 3D Pointer Rays
Added: RayMap resource that contains a Ray for every (camera, pointer) pair. This is useful
for any users building a raycasting-based picking backend, handling viewports and scale for you.
Changed: rapier and bevy_mod_raycast backends use the RayMap instead of constructing their own
rays.
Fixed: Ray construction now respects DPI / window scale.
Expanded features
Added: support for touch inputs across multiple windows.
Added: support for bevy_uiUiScale.
Added: RaycastBackendSettings::raycast_visibility to support picking hidden meshes.
Changed: simplified debug settings and examples. Debug settings can be changed with the
DebugPickingMode resource.
Bug Fixes
Fixed: sprite picking depth is now consistent with other picking backends.
Fixed: entities with identical depth could be dropped due to the use of a BTreeMap to sort
entities by depth. This has been changed to use a sorted Vec, to allow entities with the same
depth to coexist.
Fixed: rapier and bevy_mod_raycast backends use RenderLayers::default when a camera is missing
them.
Fixed: the bevy ui backend now ignores clipped areas of UI nodes.
Fixed: PickingPluginsSettings::enable_input is now used as a run condition for PickSet::ProcessInput.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on bevy_mod_picking to permit the latest version.
Changelog
Sourced from bevy_mod_picking's changelog.
... (truncated)
Commits
You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show