bardt / bevy_mod_raycast

Unofficial plugin for raycasting in Bevy

Home Page:https://crates.io/crates/bevy_mod_raycast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Bevy Raycasting

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 to your app. You can simply start raycasting:

use bevy_mod_raycast::prelude::*;

fn my_raycast_system(mut raycast: Raycast) {
    let hits = raycast.cast_ray(Ray3d::default(), &RaycastSettings::default());
}

Bevy Version Support

I intend to track the main branch of Bevy. PRs supporting this are welcome!

bevy bevy_mod_raycast
0.11 0.9 - 0.14
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

About

Unofficial plugin for raycasting in Bevy

https://crates.io/crates/bevy_mod_raycast

License:MIT License


Languages

Language:Rust 100.0%