News for hackers. Stuff that matters.
Re:Annotated code: Circles bouncing off lines by capex on Sunday February 08, 2015 @07:37PM (#9019207)
Very cool. Interesting bit: The outcomes of the falling balls seem to differ every time, which corroborates the fact that any minor change in initial state results in vastly different outcomes.

Edit: Or am I just imagining it?

Re:Annotated code: Circles bouncing off lines by jsprogrammer on Sunday February 08, 2015 @07:41PM (#9019218)
~~The simulation clock is based on the actual frame rate achieved via requestAnimationFrame().~~

Edit: Actually, it looks like the physics portion takes constant (but implicit) time steps each frame, but the time that a circle enters the simulation is based on the actual frame rate, which means when a given circle appears, the lines could be in a different location from previous runs.

Re:Annotated code: Circles bouncing off lines by capex on Sunday February 08, 2015 @08:52PM (#9019391)
Thank you.