tmayoff / hexalon

A simple battle map for TTRPGs that integrates into Obsidian
MIT License
0 stars 0 forks source link

Bump bevy_mod_picking from 0.15.0 to 0.16.0 #41

Closed dependabot[bot] closed 12 months ago

dependabot[bot] commented 1 year ago

Bumps bevy_mod_picking from 0.15.0 to 0.16.0.

Release notes

Sourced from bevy_mod_picking's releases.

v0.16.0

What's Changed

New Contributors

Full Changelog: https://github.com/aevyrie/bevy_mod_picking/compare/v0.13...v0.16.0

Changelog

Sourced from bevy_mod_picking's changelog.

0.16.0

Highlights

  • Faster compile times.
  • Sprites now support atlases, scale, rotation, and anchors.
  • All egui widgets, including side panels, are now supported.
  • bevy_mod_raycast and bevy_rapier backends are now even simpler, no longer requiring any marker components to function.
  • More flexible picking behavior and bevy_ui compatibility with the updated Pickable component.
  • Better support for cameras settings such as is_active, RenderLayers, and show_ui.

Dependencies

  • Changed: Removed dependencies on bevy and instead depend on bevy subcrates (e.g. bevy_ecs) directly. This reduces total dependency count, but more importantly allows compilation of each picking crate to start before bevy finishes.
  • Changed: bevy_ui has been removed as a core dependency, and is now completely optional.

API Improvements

  • Changed: The plugin no longer respects bevy_ui's FocusPolicy because it was not flexible enough. This has been replaced with new fields on the Pickable component. You can use this to override the behavior of any entity in picking.
    • This allows you to decide if that entity will block lower entities (on by default), and if that entity should emit events and be hover-able (on by default).
    • To make objects non-pickable, instead of removing the Pickable entity, use the new const value Pickable::IGNORE.
  • Changed: The PointerInteraction component, which is added to pointers and tracks all entities being interacted with has changed internally from a hashmap of entities and their Interaction to a sorted list of entities and HitData, sorted by depth. This better reflects how pointer data would be expected to work, and makes it easier to find the topmost entity under each pointer.
  • Added: get_nearest_hit method added to PointerInteraction
  • Changed: Moved PointerInteraction from the focus module to pointer.

Backend Improvements

  • Fixed: all backends now correctly check if a camera is_active before attempting hit tests.
  • Changed: PickLayer, which is used to order hits from backends that targets the same render target, such as multiple render passes on the same window, has been changed from an isize to an f32. This change was made to support bevy_ui, which is "special" and can be rendered on any camera via a flag, instead of being rendered with its own camera. The bevy_ui backend now adds 0.5 to the camera order of any events emitted, which was not possible with an integer.

Sprite Backend

  • Added: support for sprite scale, rotation, and custom anchors.
  • Added: support for sprite atlases.

bevy_mod_raycast Backend

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
dependabot[bot] commented 12 months ago

Superseded by #44.