bevy_xpbd
bevy_xpbd copied to clipboard
Sometimes `shape_cast` does not return all hit entities
trafficstars
I have an issue where sometimes a shape_cast does not return all entities hit by shape
reproduction here https://github.com/hukasu/avian/blob/issue821/crates/avian3d/tests/shape_cast.rs
Scenario
I have 2 entities, each of them are rotating in place with some AngularVelocity, and i am doing a query with max_distance = 0. just to get the entities within a certain radius (if there is a better method, please teach me). Most of the times the shape cast hits both entities, but some times it hits only one.
i have ran the test without AngularVelocity and it finish without error (when running for 6400 ticks)