block by natebates 273b99ddf86e2e2e58ff

Rect Collision

Full Screen

Adaptation of Mike Bostock’s Collision Detection with rectangular elements.

Got most of the way there myself but needed this example by Ilya Boyandin to clean it up.

index.html