A little mesh raycasting plugin for Bevy
See the code[!IMPORTANT] This crate is archived after being upstreamed in bevy 0.15. https://bevyengine.org/news/bevy-0-15/#entity-picking-selection
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 | 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 |
Overall
Maintained
Code review
crates.io
Latest release
Releases this year
1,066 followers · starred Feb 2022
261 followers · starred Sep 2023
269 followers · starred Dec 2022
302 followers · starred Jul 2023
A little mesh raycasting plugin for Bevy
See the code[!IMPORTANT] This crate is archived after being upstreamed in bevy 0.15. https://bevyengine.org/news/bevy-0-15/#entity-picking-selection
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 | 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 |
Overall
Maintained
Code review
crates.io
Latest release
Releases this year
1,066 followers · starred Feb 2022
261 followers · starred Sep 2023
269 followers · starred Dec 2022
302 followers · starred Jul 2023