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

#1516 in Game dev

Download history 1075/week @ 2024-12-21 945/week @ 2024-12-28 2320/week @ 2025-01-04 3100/week @ 2025-01-11 2568/week @ 2025-01-18 1833/week @ 2025-01-25 2675/week @ 2025-02-01 2700/week @ 2025-02-08 1823/week @ 2025-02-15 3207/week @ 2025-02-22 2915/week @ 2025-03-01 2805/week @ 2025-03-08 3262/week @ 2025-03-15 2693/week @ 2025-03-22 2185/week @ 2025-03-29 2169/week @ 2025-04-05

10,780 downloads per month
Used in 19 crates (9 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

~36–73MB
~1.5M SLoC