aevyrie / bevy_mod_raycast

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

Add an API for choosing a different up direction #53

Closed mxgrey closed 2 years ago

mxgrey commented 2 years ago

Thanks for this amazing library!

In my application we follow a z-up convention instead of y-up, and I found myself getting very confused about how to make the transform line up with the rays correctly. Eventually I found that this tweak to the API is the simplest way to make everything work nicely. Best of all, it has no negative impact on API.

aevyrie commented 2 years ago

Great solution. Thanks @mxgrey!