bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

Sometimes `shape_cast` does not return all hit entities

Open hukasu opened this issue 1 month ago • 4 comments
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)

hukasu avatar Sep 22 '25 21:09 hukasu