Apostolique / Apos.Spatial

Spatial partitioning library for MonoGame.
https://apostolique.github.io/Apos.Spatial/
MIT License
1 stars 1 forks source link

Expose the expand constants #1

Closed Apostolique closed 1 year ago

Apostolique commented 2 years ago

By default the algorithm expands the AABBs as an optimization step to reduce the amount of changes done to the tree between updates. This means that a query does a broad phase search first then the user is expected to do a narrow phase with the result. In other words, there could be many false positives in the results.

I could be useful to allow the expand constants to be fine tuned for each project.

Apostolique commented 1 year ago

Done in 5bc85323f5fb26526ebaf810dc53149cb7da63aa.