OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Multiple object references in one node #92

Closed OfficerYoda closed 2 days ago

OfficerYoda commented 4 days ago

With the new iterative QuadTree it is possible, that objects can be referenced from different QTNodeElements because there is no check against that.

OfficerYoda commented 4 days ago

One possible solution is to check every element if its already referencing that object during the traversal of the linked list, when appending the new QTNodeElement to the end.