aevyrie / bevy_mod_raycast

A little mesh raycasting plugin for Bevy
https://crates.io/crates/bevy_mod_raycast
MIT License
303 stars 92 forks source link

Support Skinned Meshes #102

Open SludgePhD opened 8 months ago

SludgePhD commented 8 months ago

It looks like the plugin currently always raycasts against the static mesh data, which is typically a T or V pose for rigged meshes. It would be useful if it respected the current bone poses to accurately cast rays against deformed meshes.

aevyrie commented 6 months ago

This is beyond my knowledge. I understand the basics of bones deforming mesh vertices, but I'm not very familiar with how to apply this to the mesh. Hopefully we could re-use bevy's internal code for skinned meshes. This isn't something I'm planning to implement, but I'd happily support a PR if someone wants to tackle this.