arbor icon indicating copy to clipboard operation
arbor copied to clipboard

Bug in ParticleSystem object constructor

Open kyzyx opened this issue 12 years ago • 0 comments

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

kyzyx avatar Mar 22 '12 08:03 kyzyx