Regular API function

simAddParticleObjectItem / sim.addParticleObjectItem

Description Adds an item (or clears all items) to a previously inserted particle object. See also sim.addParticleObject and sim.removeParticleObject
C/C++
synopsis
simInt simAddParticleObjectItem(simInt objectHandle,const simFloat* itemData)
C/C++
parameters
objectHandle: handle of a previously added particle object
itemData: data relative to an item. All items (particles) require at least 6 values: p1x, p1y, p1z, p2x, p2y, p2z with p1 is the particle start position, p2-p1 is the particle initial velocity vector. Auxiliary values might be required depending on the particle object attributes. See the particle object type combined with attributes for more information. If nullptr the particle object is emptied of all its items
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.addParticleObjectItem(int particleObjectHandle,float[] itemData)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.addParticleObjectItem(int particleObjectHandle,list itemData)