1
Quad Tree Ball
![]() MOBIUS_LINE
|
Hi Potato! Can you explain the code for this? I'd like to know how this works to see if I can implement it in a project. Thanks! :D
|
![]() PotatoImaginator
|
We're subdividing the screen and checking if for a given square, each pixel of square is inside or outside the ball. If the square doesn't contain the ball, we draw the square. If the square contains ball, we subdivide it into 4 smaller squares and repeat the process. It is recursive function
|