Collision Detection
✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 30, 2017
Created on Mar 30, 2017
D3’s forceSimulation engine drives 1,000 nodes of randomized radius on a Canvas, with forces for x, y, and collision keeping them centered. Every two seconds, the collision radius is increased via d3.forceCollide’s radius function, prompting the simulation to restart and reinitialize, visibly enlarging all nodes while they re-separate under the updated constraints. The scene is drawn per tick by clearing the canvas, translating to the center, and stroking filled arcs for each node.
AI-generated descriptionTest if d3.forceCollide can reinitialize after updating the node radii
forked from <a href='http://bl.ocks.org/steveharoz/'>steveharoz</a>'s block: <a href='http://bl.ocks.org/steveharoz/3fc45e398b8bd7a17460698e79c19d03'>Collision Detection</a>
gpl-3.0 Licensed