Skip to main content

ParticleArgs

Index

Properties

optionalacc

acc?: Vector

Starting acceleration of the particle

optionalangularVelocity

angularVelocity?: number

Starting angular velocity of the particle

optionalbeginColor

beginColor?: Color

Beginning color of the particle over its life

optionalendColor

endColor?: Color

Ending color of the particle over its life

optionalendSize

endSize?: number

Set the end size when you want to change particle size over their life

optionalfade

fade?: boolean

Should the particle fade out to fully transparent over their life

optionalfocus

focus?: Vector

Gets or sets the optional focus where all particles should accelerate towards

optionalfocusAccel

focusAccel?: number

Gets or sets the optional acceleration for focusing particles if a focus has been specified

optionalgraphic

graphic?: Graphic

Optionally set a graphic

optionallife

life?: number

Totally life of the particle in milliseconds

optionalmaxAngle

maxAngle?: number

Maximum angle to use for the particles starting rotation

optionalmaxSize

maxSize?: number

Largest possible starting size of the particle

optionalmaxVel

maxVel?: number

Maximum magnitude of the particle starting vel

optionalminAngle

minAngle?: number

Minimum angle to use for the particles starting rotation

optionalminSize

minSize?: number

Smallest possible starting size of the particle

optionalminVel

minVel?: number

Minimum magnitude of the particle starting vel

optionalopacity

opacity?: number

Starting opacity of the particle

optionalpos

pos?: Vector

Starting position of the particle

optionalrandomRotation

randomRotation?: boolean

Indicates whether particles should start with a random rotation

optionalrotation

rotation?: number

Starting rotation of the particle

optionalsize

size?: number

Size of the particle in pixels

optionalstartSize

startSize?: number

Set the start size when you want to change particle size over their life

optionaltransform

transform?: ParticleTransform

Optionally set the emitted particle transform style, ParticleTransform.Global is the default and emits particles as if they were world space objects, useful for most effects.

If set to ParticleTransform.Local particles are children of the emitter and move relative to the emitter as they would in a parent/child actor relationship.

optionalvel

vel?: Vector

Starting velocity of the particle