Skip to content

Instantly share code, notes, and snippets.

View adamcanray's full-sized avatar
🤖
Start by making your own stuff

Ujang adamcanray

🤖
Start by making your own stuff
View GitHub Profile
@adamcanray
adamcanray / d3.z.collide.js
Created October 25, 2023 07:04 — forked from ZJONSSON/d3.z.collide.js
Newton's cradle
/*
Newtonian collision checking (draft)
based on the paper: http://www.vobarian.com/collisions/2dcollisions2.pdf
ziggy.jonsson.nyc@gmail.com
*/
if (typeof d3.z != "object") d3.z = {};
(function() {