Regular API function


Description Adds an item (or clears all items) to a previously inserted particle object. See also simAddParticleObject and simRemoveParticleObject
C synopsis simInt simAddParticleObjectItem(simInt objectHandle,const simFloat* itemData)
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 NULL the particle object is emptied of all its items
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simAddParticleObjectItem(number particleObjectHandle,table itemData)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page