arbor
arbor copied to clipboard
Bug in ParticleSystem object constructor
In physics/system.js, the object initializer (i.e. ParticleSystem({repulsion:1000, stiffness:80)) does not work. Changing lines 20-21 from
if (typeof stiffness=='object'){
var _p = stiffness
to
if (typeof repulsion=='object'){
var _p = repulsion
fixes the problem