35 releases (17 breaking)

0.18.0 Jul 5, 2024
0.17.0 Feb 23, 2024
0.16.0 Nov 10, 2023
0.9.0 Jul 18, 2023
0.1.0 Jan 22, 2021

#54 in Game dev

Download history 5694/week @ 2024-08-15 8007/week @ 2024-08-22 5680/week @ 2024-08-29 6952/week @ 2024-09-05 2908/week @ 2024-09-12 3709/week @ 2024-09-19 2820/week @ 2024-09-26 2221/week @ 2024-10-03 2008/week @ 2024-10-10 2039/week @ 2024-10-17 2236/week @ 2024-10-24 2377/week @ 2024-10-31 1851/week @ 2024-11-07 1962/week @ 2024-11-14 2469/week @ 2024-11-21 2517/week @ 2024-11-28

9,238 downloads per month
Used in 24 crates (11 directly)

MIT license

185KB
1K SLoC

bevy_mod_raycast

A small Bevy plugin for mesh raycasting.

CI docs.rs crates.io

reflecting_lasers example

Getting Started

Using the Raycast system param, you don't even need to add a plugin, you can directly raycast into the ECS:

use bevy_mod_raycast::prelude::*;

fn my_raycast_system(mut raycast: Raycast) {
    let ray = Ray3d::new(Vec3::ZERO, Vec3::X);
    let hits = raycast.cast_ray(ray, &RaycastSettings::default());
}

Bevy Version Support

I intend to track the `main` branch of Bevy. PRs supporting this are welcome!
bevy bevy_mod_raycast
0.14 0.18
0.13 0.17
0.12 0.16
0.11 0.9 - 0.15
0.10 0.8
0.9 0.7
0.8 0.6
0.7 0.4 - 0.5
0.6 0.3
0.5 0.2
0.4 0.1

Dependencies

~32–68MB
~1M SLoC