Lua API:Simulation
The Simulation API allows for modifying the state and properties of particles, air and gravity
Methods
simulation.partNeighbours
number ... sim.partNeighbours(number x, number y, number radius, [number type])
Returns a list of particles indexes that neighbour the given coordinates that matches the given type (if it is specified) The resulting list does not contain the "origin particle"