bevy_picking_bvh_backend

Crates.iobevy_picking_bvh_backend
lib.rsbevy_picking_bvh_backend
version0.1.0
created_at2025-02-17 14:18:28.369764+00
updated_at2025-02-17 14:18:28.369764+00
descriptionA picking backend plugin for Bevy which uses a BVH tree to improve performances.
homepage
repository
max_upload_size
id1558966
size186,976
Romain Lamarche (rlamarche)

documentation

README

Bevy Picking Bvh Backend

This plugins is a drop-in replacement of MeshPickingPlugin, reusing most of its components, to provider better performance when raycasting through a (very) large mesh.

To try the example, just run :

cargo run --example simple --release

For large meshes, it is recommended to use release mode, because building of the BVH tree can take some time

Large mesh example

Download the following mesh https://github.com/pettett/dragon_high using the following commands:

mkdir -p assets/models
wget https://github.com/pettett/dragon_high/raw/refs/heads/main/dragon_high.glb -O assets/models/dragon_high.glb

Then run the dragon_high sample:

cargo run --example dragon_high --release
Commit count: 0

cargo fmt