OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Querieng the QuadTree can cause ConcurrentModificationException #22

Closed OfficerYoda closed 1 month ago

OfficerYoda commented 1 month ago

When querieng to get the hovered object a ConcurrentModificationException can occur. This happens because the query call is not synced with the fhysics update cycle

OfficerYoda commented 1 month ago

Fixed by adding a ReentrantLock to only run one thread at a time.