Expand description
A raycasting backend for bevy_mod_picking
that uses bevy_mod_raycast
for raycasting.
§Usage
If a pointer passes through this camera’s render target, it will automatically shoot rays into the scene and will be able to pick things.
To ignore an entity, you can add Pickable::IGNORE
to it, and it will be ignored during
raycasting.
For fine-grained control, see the RaycastBackendSettings::require_markers
setting.
Re-exports§
pub use bevy_mod_raycast;
Modules§
- prelude
- Commonly used imports for the
bevy_picking_raycast
crate.
Structs§
- Raycast
Backend - Adds the raycasting picking backend to your app.
- Raycast
Backend Settings - Runtime settings for the
RaycastBackend
. - Raycast
Pickable - Optional. Marks cameras and target entities that should be used in the raycast picking backend.
Only needed if
RaycastBackendSettings::require_markers
is set to true.
Functions§
- update_
hits - Raycasts into the scene using
RaycastBackendSettings
andPointerLocation
s, then outputsPointerHits
.