33 releases (16 breaking)

0.17.0 Feb 23, 2024
0.16.0 Nov 10, 2023
0.15.0 Oct 30, 2023
0.9.0 Jul 18, 2023
0.1.0 Jan 22, 2021

#78 in Game dev

Download history 1619/week @ 2023-12-24 2331/week @ 2023-12-31 3511/week @ 2024-01-07 3966/week @ 2024-01-14 2102/week @ 2024-01-21 2330/week @ 2024-01-28 1820/week @ 2024-02-04 1337/week @ 2024-02-11 2576/week @ 2024-02-18 2634/week @ 2024-02-25 3066/week @ 2024-03-03 3002/week @ 2024-03-10 2614/week @ 2024-03-17 2604/week @ 2024-03-24 2906/week @ 2024-03-31 1624/week @ 2024-04-07

9,920 downloads per month
Used in 18 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.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

~38–79MB
~1M SLoC