| Crates.io | bevy_mod_raycast |
| lib.rs | bevy_mod_raycast |
| version | 0.18.0 |
| created_at | 2021-01-22 11:10:49.25834+00 |
| updated_at | 2024-07-05 01:56:25.742786+00 |
| description | Ray Casting for the Bevy Engine. |
| homepage | |
| repository | https://github.com/aevyrie/bevy_mod_raycast/ |
| max_upload_size | |
| id | 345283 |
| size | 327,813 |
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());
}
👉 Read the docs!
Play with the examples.
| 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 |