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

#1741 in Game dev

Download history 3820/week @ 2024-09-21 2521/week @ 2024-09-28 1999/week @ 2024-10-05 2097/week @ 2024-10-12 2162/week @ 2024-10-19 2061/week @ 2024-10-26 2649/week @ 2024-11-02 1664/week @ 2024-11-09 1902/week @ 2024-11-16 2702/week @ 2024-11-23 3162/week @ 2024-11-30 3267/week @ 2024-12-07 3221/week @ 2024-12-14 1075/week @ 2024-12-21 945/week @ 2024-12-28 2210/week @ 2025-01-04

8,055 downloads per month
Used in 20 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

~32–68MB
~1M SLoC