Module bevy_mod_raycast::immediate
source · Expand description
§Immediate Mode Raycasting API
See the minimal
example for reference.
This is the simplest way to get started. Add the Raycast
SystemParam
to your system, and
call Raycast::cast_ray
, to get a list of intersections. Raycasts are performed immediately
when you call the cast_ray
method. See the Raycast
documentation for more details. You
don’t even need to add a plugin to your application.
Structs§
- Add this raycasting
SystemParam
to your system to raycast into the world with an immediate-mode API. Callcast_ray
to immediately perform a raycast and get a result. Under the hood, this is a collection of regular bevy queries, resources, and locals that are added to your system. - Settings for a raycast.
Enums§
- How a raycast should handle visibility