This repository was archived by the owner on Mar 4, 2025. It is now read-only.
v0.18.0
0.18.0
Announcements:
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_uidebug overlay is broken until bevyengine/bevy#12268 is
released as part ofbevy 0.13.1.
Changes:
New bevy_xpbd backend
- Added:
bevy_xpbd_3dpicking backend, available behind the optionalbackend_xpbdfeature.
Automatic 3D Pointer Rays
- Added:
RayMapresource that contains aRayfor 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
RayMapinstead 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_visibilityto support picking hidden meshes. - Changed: simplified debug settings and examples. Debug settings can be changed with the
DebugPickingModeresource.
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::defaultwhen a camera is missing
them. - Fixed: the bevy ui backend now ignores clipped areas of UI nodes.
- Fixed:
PickingPluginsSettings::enable_inputis now used as a run condition forPickSet::ProcessInput. - Fixed: replaced uses of
.insertwith.try_insert, where they could potentially panic. - Fixed: replace all
.singlecalls with matched.get_singlecalls to avoid crashing in
environments where there is no window available.
Documentation and Naming
- Documentation pass over all docs.
- Changed: renamed
Pickable::should_emit_eventstois_hoverableand clarified the docs. - Removed:
PickingPluginsSettings::enable_highlighting, which was nonfunctional. - Changed: renamed
PickingPluginsSettings,HighlightingPluginSettingsfields to be consistent.
RenamedSelectionSettingstoSelectionPluginSettings.
New Contributors
- @TheFedaikin made their first contribution in #292
- @awtterpip made their first contribution in #279
- @dgriffith0 made their first contribution in #282
- @ickshonpe made their first contribution in #285
- @teodosin made their first contribution in #293
- @Schmarni-Dev made their first contribution in #296
- @janriemer made their first contribution in #299
- @skylerparr made their first contribution in #304
- @StrikeForceZero made their first contribution in #314
- @NthTensor made their first contribution in #297
- @Affinator made their first contribution in #306
Full Changelog: v0.17.0...v0.18.0