Build array from set works also with arrays and arranges the values like this: Particle 1: Id = 0 scalararray = [m, n, o] Particle 2: Id = 1 scalararray = [a, b, c] Particle 3: Id = 2 scalararray = [x, y, z]
Build array from set output: [m, n, o, a, b, c, x, y, z] On Mon, Feb 18, 2013 at 11:39 PM, Adam Sale <[email protected]> wrote: > I guess the subject frames my question. > > I am doing some crowd work, where I am using distance to neighboring > particles and if true, then rescaling the velocities of certain particles > from their current velocity to a new velocity. > > Unfortunately I am running into context issues. > > Is there a way for me to convert from an array of values per particle to a > single scalar? > > I am looking into archives, but am clearly not asking my question > correctly.. > > Thanks > > Adam >

