News for hackers. Stuff that matters.
Re:Show HN: box2d-jquery - physics-engine for your DOM by franze on Tuesday December 11, 2012 @05:17AM (#4903906)
nope, a true physics engine behaves the same time, always - if there are no outside forces. if you kick stuff around (use your mouse of fingers on touch devices) == outside force -> different outcome

this 2d world has no intrinsic random/chaotic forces (i.e. no wind) so everything behaves the same, always, forever. if you want your world to be more random you could write something like this (during the world initiation phase a.k.a. the first box2d-jquery call)

  $("h1, code, .box2d").box2d({'y-velocity':5, 'x-velocity':Math.random()}
Re:Show HN: box2d-jquery - physics-engine for your DOM by jasin on Tuesday December 11, 2012 @05:19AM (#4903915)
However, different binaries may generally yield slightly different results due to compilers ordering floating-point operations differently, for example.
Re:Show HN: box2d-jquery - physics-engine for your DOM by franze on Tuesday December 11, 2012 @05:22AM (#4903923)
like schrödingers cat for physics engines? but with the difference as long as it is the same box, the outcome is always the same?
Re:Show HN: box2d-jquery - physics-engine for your DOM by lucian1900 on Tuesday December 11, 2012 @06:12AM (#4904070)
That is what physics engines tend to aim for. Some even guarantee portably stable results.
Re:Show HN: box2d-jquery - physics-engine for your DOM by alxbrun on Tuesday December 11, 2012 @11:14AM (#4905100)
What happens to the Heisenberg principle ??? :P