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§

prelude
Commonly used imports for the bevy_picking_raycast crate.

Structs§

RaycastBackend
Adds the raycasting picking backend to your app.
RaycastBackendSettings
Runtime settings for the RaycastBackend.
RaycastPickable
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 and PointerLocations, then outputs PointerHits.