I have 2 questions about quad trees.
I'm planning to use quad trees for sphere-sphere, sphere-point, sphere-line and sphere-point collision detection.
1: How often do you typically update the tree ? Every frames ? Every time something changes in the scene (I have no trigger for that, but it shouldn't be hard to implement, however in my games stuff moves about every update tick)
2: How do you detect the number of object in each nodes ? Simple square test for each objects ? Isn't that inefficient if the purpose is to reduce calculations ?