appsinacup / godot-rapier-physics

Godot Rapier Physics – A 2D and 3D drop-in replacement for the Godot engine that adds stability and fluids.
https://godot.rapier.rs
MIT License
348 stars 17 forks source link

Use a data holder and send it through layers #87

Closed Ughuuu closed 3 months ago

Ughuuu commented 5 months ago

In the new versions rust rewrite, I use now a singleton locked with a mutex to access data. Instead, I should give a reference to the data holder to all layers, and possiblity use a hashmap that can handle access from multiple threads(dashmap)