dimforge / rapier

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

`dyn PhysicsHooks` cannot be shared between threads safely --> WASM compile fails #614

Closed ajerni closed 2 months ago

ajerni commented 3 months ago

bevy = 0.13.1 and bevy_rapier2d = 0.25.0 trying to compile WASM seems to use rapier2d-0.18.0 and fails compiling:

Usingcargo build --release --target wasm32-unknown-unknown results in could not compile rapier2d (lib) due to 2 previous errors:

dyn PhysicsHooks cannot be shared between threads safely

Is this a known bug? Otherwise obviously a missing feature...

ajerni commented 2 months ago

this solved the issue: https://github.com/dimforge/bevy_rapier/issues/315