I want do do some flocking simulation, as described here.
For this I need to search for the nearest neighbours of each of my 2D points. However, I cannot use a static data structure like a k-d tree because the points are always moving...
What's a good (easy) datastructure/library that is able to achieve this? I'm working with C++...