subnodes 
	myTree.clear();

	//update myObjects and insert them into the tree again
	for(var i=0;i&lt;myObjects.length;i=i+1) {
		
		myObjects[i].x += myObjects[i].vx;
		myObjects[i].y += myObjects[i].vy;
		
		myTree.insert(myObjects[i]);
	}

	//call next frame
	requestAnimationFrame(loop);
}</code></pre>

			<p>
				After filling the quadtree, we can now retrieve collision candidates for a certain area. In this example, we constantly retrieve collision candidates for the white area at your