I'm designing a QuadTree to scene partitioning, I've read theory and seen some code examples.
When a node has more than 4 objects, it will be splitted into 4 sub-nodes and its objects will be put into them, but if an object is on the edges of any sub-node, it will be placed in the parent node. Why should I do this?
I think it's better put it on every sub-node where it's colliding. Am I wrong?. I've designed a pattern to achieve this ;).