2 ms·
A physics system good enough to support this is probably ~200loc. Probably less if you cut out everything extraneous. All it is is AABB collision detection+reso
by yoklov 11y ago
A physics system good enough to support this is probably ~200loc. Probably less if you cut out everything extraneous. All it is is AABB collision detection+resolution, and then some update code.
I think the graph + graph algos would be trickier most of the time, but that could just be since I've written the above code many, many times.