Skip to content
lsl.devlsl.devLSL Dev

Constants in the ParticleParam enum.

All constant groups

At a glance, from the LSL definitions
// Emitter pattern and burstPSYS_SRC_PATTERN, integer pattern  // PSYS_SRC_PATTERN_*PSYS_SRC_BURST_RATE, float burst_sleep  // seconds between bursts; 0.0 is as fast as the viewer canPSYS_SRC_BURST_PART_COUNT, integer burst_particle_countPSYS_SRC_BURST_RADIUS, float radius  // metres from the emitter; ignored with PSYS_PART_FOLLOW_SRC_MASK// Particle appearancePSYS_PART_START_COLOR, vector color_startPSYS_PART_END_COLOR, vector color_end  // needs PSYS_PART_INTERP_COLOR_MASKPSYS_PART_START_ALPHA, float alpha_start  // 0.0 to 1.0PSYS_PART_END_ALPHA, float alpha_end  // needs PSYS_PART_INTERP_COLOR_MASKPSYS_PART_START_SCALE, vector scale_start  // 0.03125 to 4.0 m per axis; z ignoredPSYS_PART_END_SCALE, vector scale_end  // needs PSYS_PART_INTERP_SCALE_MASKPSYS_PART_START_GLOW, float glow_start  // 0.0 to 1.0PSYS_PART_END_GLOW, float glow_endPSYS_SRC_TEXTURE, string texture  // inventory name or UUIDPSYS_PART_BLEND_FUNC_SOURCE, integer bf_source  // PSYS_PART_BF_*; default _SOURCE_ALPHAPSYS_PART_BLEND_FUNC_DEST, integer bf_dest  // PSYS_PART_BF_*; default _ONE_MINUS_SOURCE_ALPHA// MotionPSYS_SRC_BURST_SPEED_MIN, float speed_min  // m/sPSYS_SRC_BURST_SPEED_MAX, float speed_max  // m/sPSYS_SRC_ACCEL, vector acceleration  // m/s², region axes; -100.0 to 100.0 per axisPSYS_SRC_OMEGA, vector omega  // pattern rotation per burst, region axesPSYS_SRC_ANGLE_BEGIN, float angle_begin  // half angle in radians; ANGLE patternsPSYS_SRC_ANGLE_END, float angle_end  // half angle in radians; ANGLE patternsPSYS_SRC_TARGET_KEY, key target  // needs PSYS_PART_TARGET_POS_MASK or _LINEAR_MASKPSYS_SRC_INNERANGLE, float angle_inner  // deprecated: use PSYS_SRC_ANGLE_BEGINPSYS_SRC_OUTERANGLE, float angle_outer  // deprecated: use PSYS_SRC_ANGLE_END// LifetimePSYS_PART_MAX_AGE, float duration_particle  // seconds per particle; at most 30.0PSYS_SRC_MAX_AGE, float duration_system  // seconds the emitter runs; 0.0 is forever// FlagsPSYS_PART_FLAGS, integer flags  // PSYS_PART_*_MASK, combined with |

Constants

Emitter pattern and burst

ConstantTypeValueDescription
PSYS_SRC_PATTERNinteger9Integer parameter specifying the generation pattern (PSYS_SRC_PATTERN_*) used to emit particles.
PSYS_SRC_BURST_RATEinteger13Float parameter specifying the interval in seconds between particle bursts.
PSYS_SRC_BURST_PART_COUNTinteger15Integer parameter specifying the number of particles to release in each burst.
PSYS_SRC_BURST_RADIUSinteger16Float parameter specifying the radial distance from the emitter's center at which particles are created.

Particle appearance

ConstantTypeValueDescription
PSYS_PART_START_COLORinteger1Vector parameter <r, g, b> that determines the starting color of the particles.
PSYS_PART_END_COLORinteger3Vector parameter <r, g, b> that determines the ending color of the particles.
PSYS_PART_START_ALPHAinteger2Float parameter that determines the starting alpha (transparency) of the particles.
PSYS_PART_END_ALPHAinteger4Float parameter that determines the ending alpha (transparency) of the particles.
PSYS_PART_START_SCALEinteger5Vector parameter <sx, sy, z> defining the starting size of the particle billboard in meters (z-axis value is ignored).
PSYS_PART_END_SCALEinteger6Vector parameter <sx, sy, z> defining the ending size of the particle billboard in meters (z-axis value is ignored).
PSYS_PART_START_GLOWinteger26Float parameter that determines the starting glow value of the particles.
PSYS_PART_END_GLOWinteger27Float parameter that determines the ending glow value of the particles.
PSYS_SRC_TEXTUREinteger12String parameter specifying the inventory name or UUID asset key of the texture used for the particles.
PSYS_PART_BLEND_FUNC_SOURCEinteger24Integer parameter defining the source blending function.
PSYS_PART_BLEND_FUNC_DESTinteger25Integer parameter defining the destination blending function.

Motion

ConstantTypeValueDescription
PSYS_SRC_BURST_SPEED_MINinteger17Float parameter specifying the minimum initial speed of emitted particles.
PSYS_SRC_BURST_SPEED_MAXinteger18Float parameter specifying the maximum initial speed of emitted particles.
PSYS_SRC_ACCELinteger8Vector parameter <x, y, z> specifying the constant acceleration to apply to particles.
PSYS_SRC_OMEGAinteger21Vector parameter setting the angular velocity used to rotate the emission axis for ANGLE and ANGLE_CONE patterns.
PSYS_SRC_ANGLE_BEGINinteger22Float parameter specifying the angle in radians where particles will not be created (for ANGLE patterns).
PSYS_SRC_ANGLE_ENDinteger23Float parameter specifying the ending angle in radians to be filled with particles (for ANGLE patterns). If smaller than angle_begin, their roles are swapped.
PSYS_SRC_TARGET_KEYinteger20Key (UUID) of the target object that particles travel toward when PSYS_PART_TARGET_POS_MASK or PSYS_PART_TARGET_LINEAR_MASK is enabled.
PSYS_SRC_INNERANGLEinteger10Float parameter specifying the inner angle of the arc for ANGLE or ANGLE_CONE patterns. The specified inner area will not contain particles.
PSYS_SRC_OUTERANGLEinteger11Float parameter specifying the outer angle of the arc for ANGLE or ANGLE_CONE patterns. The area between the outer and inner angles is filled with particles.

Lifetime

ConstantTypeValueDescription
PSYS_PART_MAX_AGEinteger7Float parameter specifying the lifetime (age in seconds) of an individual particle before it dies.
PSYS_SRC_MAX_AGEinteger19Float parameter specifying the active duration of the particle system in seconds (0.0 means forever).

Flags

ConstantTypeValueDescription
PSYS_PART_FLAGSinteger0Integer bitfield parameter specifying the simulation flags for emitted particles. Multiple flags can be combined using bitwise OR (|).

Used by