Crate bevy_picking_raycast
source ·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§
- Commonly used imports for the
bevy_picking_raycast
crate.
Structs§
- Adds the raycasting picking backend to your app.
- Runtime settings for the
RaycastBackend
. - 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§
- Raycasts into the scene using
RaycastBackendSettings
andPointerLocation
s, then outputsPointerHits
.