aevyrie/bevy_mod_raycast

A little mesh raycasting plugin for Bevy

Rust

339

298 commits

updated Mar 13, 2025

See the code

README

[!IMPORTANT] This crate is archived after being upstreamed in bevy 0.15. https://bevyengine.org/news/bevy-0-15/#entity-picking-selection

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!
bevybevy_mod_raycast
0.140.18
0.130.17
0.120.16
0.110.9 - 0.15
0.100.8
0.90.7
0.80.6
0.70.4 - 0.5
0.60.3
0.50.2
0.40.1
bevy
game-development
raycasting

aevyrie/bevy_mod_raycast

A little mesh raycasting plugin for Bevy

Rust

339

298 commits

updated Mar 13, 2025

See the code

README

[!IMPORTANT] This crate is archived after being upstreamed in bevy 0.15. https://bevyengine.org/news/bevy-0-15/#entity-picking-selection

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!
bevybevy_mod_raycast
0.140.18
0.130.17
0.120.16
0.110.9 - 0.15
0.100.8
0.90.7
0.80.6
0.70.4 - 0.5
0.60.3
0.50.2
0.40.1
bevy
game-development
raycasting

Project health

Overall

3.4/10

Maintained

0/10

Code review

3/10
OpenSSF Scorecard

Latest release

0.18.0 · Jul 5, 2024

Releases this year

0

Significant stargazers

onbjerg

1,066 followers · starred Feb 2022

Stephan Seitz

261 followers · starred Sep 2023

张林伟

269 followers · starred Dec 2022

Peng Zhong

302 followers · starred Jul 2023