dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.77k stars 235 forks source link

QueryFilter need Send + Sync #555

Closed alexniver closed 1 month ago

alexniver commented 7 months ago

my condition, main thread run graphics, other thread run rapier, use channel send message, can't send QueryFilter

error message

 `(dyn for<'a> Fn(ColliderHandle, &'a rapier3d::geometry::Collider) -> bool + 'static)` cannot be shared between 
threads safely