- _updateRenderThread
void _updateRenderThread()
- convertFromParticles
void convertFromParticles(Node particles)
Sets this node's properties to match a given Particles node with an assigned ParticlesMaterial.
- getAmount
long getAmount()
- getColor
Color getColor()
- getColorRamp
Ref!Gradient getColorRamp()
- getDirection
Vector3 getDirection()
- getDrawOrder
CPUParticles.DrawOrder getDrawOrder()
- getEmissionBoxExtents
Vector3 getEmissionBoxExtents()
- getEmissionColors
PoolColorArray getEmissionColors()
- getEmissionNormals
PoolVector3Array getEmissionNormals()
- getEmissionPoints
PoolVector3Array getEmissionPoints()
- getEmissionShape
CPUParticles.EmissionShape getEmissionShape()
- getEmissionSphereRadius
double getEmissionSphereRadius()
- getExplosivenessRatio
double getExplosivenessRatio()
- getFixedFps
long getFixedFps()
- getFlatness
double getFlatness()
- getFractionalDelta
bool getFractionalDelta()
- getGravity
Vector3 getGravity()
- getLifetime
double getLifetime()
- getLifetimeRandomness
double getLifetimeRandomness()
- getMesh
Ref!Mesh getMesh()
- getOneShot
bool getOneShot()
- getParam
double getParam(long param)
Returns the base value of the parameter specified by parameter.
- getParamCurve
Ref!Curve getParamCurve(long param)
Returns the Curve of the parameter specified by parameter.
- getParamRandomness
double getParamRandomness(long param)
Returns the randomness factor of the parameter specified by parameter.
- getParticleFlag
bool getParticleFlag(long flag)
Returns the enabled state of the given flag (see flags for options).
- getPreProcessTime
double getPreProcessTime()
- getRandomnessRatio
double getRandomnessRatio()
- getSpeedScale
double getSpeedScale()
- getSpread
double getSpread()
- getUseLocalCoordinates
bool getUseLocalCoordinates()
- isEmitting
bool isEmitting()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(CPUParticles other)
- opEquals
bool opEquals(typeof(null) n)
- restart
void restart()
Restarts the particle emitter.
- setAmount
void setAmount(long amount)
- setColor
void setColor(Color color)
- setColorRamp
void setColorRamp(Gradient ramp)
- setDirection
void setDirection(Vector3 direction)
- setDrawOrder
void setDrawOrder(long order)
- setEmissionBoxExtents
void setEmissionBoxExtents(Vector3 extents)
- setEmissionColors
void setEmissionColors(PoolColorArray array)
- setEmissionNormals
void setEmissionNormals(PoolVector3Array array)
- setEmissionPoints
void setEmissionPoints(PoolVector3Array array)
- setEmissionShape
void setEmissionShape(long shape)
- setEmissionSphereRadius
void setEmissionSphereRadius(double radius)
- setEmitting
void setEmitting(bool emitting)
- setExplosivenessRatio
void setExplosivenessRatio(double ratio)
- setFixedFps
void setFixedFps(long fps)
- setFlatness
void setFlatness(double amount)
- setFractionalDelta
void setFractionalDelta(bool enable)
- setGravity
void setGravity(Vector3 accel_vec)
- setLifetime
void setLifetime(double secs)
- setLifetimeRandomness
void setLifetimeRandomness(double random)
- setMesh
void setMesh(Mesh mesh)
- setOneShot
void setOneShot(bool enable)
- setParam
void setParam(long param, double value)
Sets the base value of the parameter specified by parameter.
- setParamCurve
void setParamCurve(long param, Curve curve)
Sets the Curve of the parameter specified by parameter.
- setParamRandomness
void setParamRandomness(long param, double randomness)
Sets the randomness factor of the parameter specified by parameter.
- setParticleFlag
void setParticleFlag(long flag, bool enable)
Enables or disables the given flag (see flags for options).
- setPreProcessTime
void setPreProcessTime(double secs)
- setRandomnessRatio
void setRandomnessRatio(double ratio)
- setSpeedScale
void setSpeedScale(double scale)
- setSpread
void setSpread(double degrees)
- setUseLocalCoordinates
void setUseLocalCoordinates(bool enable)
- toHash
size_t toHash()
- amount
long amount [@property getter]
long amount [@property setter]
The number of particles emitted in one emission cycle (corresponding to the lifetime).
Note: Changing amount will reset the particle emission, therefore removing all particles that were already emitted before changing amount.
- angle
double angle [@property getter]
double angle [@property setter]
Initial rotation applied to each particle, in degrees.
- angleCurve
Curve angleCurve [@property getter]
Curve angleCurve [@property setter]
Each particle's rotation will be animated along this Curve.
- angleRandom
double angleRandom [@property getter]
double angleRandom [@property setter]
Rotation randomness ratio.
- angularVelocity
double angularVelocity [@property getter]
double angularVelocity [@property setter]
Initial angular velocity applied to each particle. Sets the speed of rotation of the particle.
- angularVelocityCurve
Curve angularVelocityCurve [@property getter]
Curve angularVelocityCurve [@property setter]
Each particle's angular velocity will vary along this Curve.
- angularVelocityRandom
double angularVelocityRandom [@property getter]
double angularVelocityRandom [@property setter]
Angular velocity randomness ratio.
- animOffset
double animOffset [@property getter]
double animOffset [@property setter]
Particle animation offset.
- animOffsetCurve
Curve animOffsetCurve [@property getter]
Curve animOffsetCurve [@property setter]
Each particle's animation offset will vary along this Curve.
- animOffsetRandom
double animOffsetRandom [@property getter]
double animOffsetRandom [@property setter]
Animation offset randomness ratio.
- animSpeed
double animSpeed [@property setter]
Particle animation speed.
- animSpeed
double animSpeed [@property getter]
Particle animation speed.
- animSpeedCurve
Curve animSpeedCurve [@property setter]
Each particle's animation speed will vary along this Curve.
- animSpeedCurve
Curve animSpeedCurve [@property getter]
Each particle's animation speed will vary along this Curve.
- animSpeedRandom
double animSpeedRandom [@property setter]
Animation speed randomness ratio.
- animSpeedRandom
double animSpeedRandom [@property getter]
Animation speed randomness ratio.
- color
Color color [@property getter]
Color color [@property setter]
- colorRamp
Gradient colorRamp [@property getter]
Gradient colorRamp [@property setter]
- damping
double damping [@property getter]
double damping [@property setter]
The rate at which particles lose velocity.
- dampingCurve
Curve dampingCurve [@property getter]
Curve dampingCurve [@property setter]
Damping will vary along this Curve.
- dampingRandom
double dampingRandom [@property getter]
double dampingRandom [@property setter]
Damping randomness ratio.
- direction
Vector3 direction [@property getter]
Vector3 direction [@property setter]
Unit vector specifying the particles' emission direction.
- drawOrder
CPUParticles.DrawOrder drawOrder [@property getter]
long drawOrder [@property setter]
Particle draw order. Uses draworder values.
- emissionBoxExtents
Vector3 emissionBoxExtents [@property getter]
Vector3 emissionBoxExtents [@property setter]
The rectangle's extents if emissionShape is set to constant EMISSION_SHAPE_BOX.
- emissionColors
PoolColorArray emissionColors [@property getter]
PoolColorArray emissionColors [@property setter]
Sets the Colors to modulate particles by when using constant EMISSION_SHAPE_POINTS or constant EMISSION_SHAPE_DIRECTED_POINTS.
- emissionNormals
PoolVector3Array emissionNormals [@property getter]
PoolVector3Array emissionNormals [@property setter]
Sets the direction the particles will be emitted in when using constant EMISSION_SHAPE_DIRECTED_POINTS.
- emissionPoints
PoolVector3Array emissionPoints [@property getter]
PoolVector3Array emissionPoints [@property setter]
Sets the initial positions to spawn particles when using constant EMISSION_SHAPE_POINTS or constant EMISSION_SHAPE_DIRECTED_POINTS.
- emissionShape
CPUParticles.EmissionShape emissionShape [@property getter]
long emissionShape [@property setter]
Particles will be emitted inside this region. See emissionshape for possible values.
- emissionSphereRadius
double emissionSphereRadius [@property getter]
double emissionSphereRadius [@property setter]
The sphere's radius if emissionshape is set to constant EMISSION_SHAPE_SPHERE.
- emitting
bool emitting [@property getter]
bool emitting [@property setter]
If true, particles are being emitted.
- explosiveness
double explosiveness [@property getter]
double explosiveness [@property setter]
How rapidly particles in an emission cycle are emitted. If greater than 0, there will be a gap in emissions before the next cycle begins.
- fixedFps
long fixedFps [@property getter]
long fixedFps [@property setter]
The particle system's frame rate is fixed to a value. For instance, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the particle system itself.
- flagAlignY
bool flagAlignY [@property getter]
bool flagAlignY [@property setter]
Align Y axis of particle with the direction of its velocity.
- flagDisableZ
bool flagDisableZ [@property getter]
bool flagDisableZ [@property setter]
If true, particles will not move on the z axis.
- flagRotateY
bool flagRotateY [@property getter]
bool flagRotateY [@property setter]
If true, particles rotate around Y axis by angle.
- flatness
double flatness [@property getter]
double flatness [@property setter]
Amount of spread in Y/Z plane. A value of 1 restricts particles to X/Z plane.
- fractDelta
bool fractDelta [@property getter]
bool fractDelta [@property setter]
If true, results in fractional delta calculation which has a smoother particles display effect.
- gravity
Vector3 gravity [@property getter]
Vector3 gravity [@property setter]
Gravity applied to every particle.
- hueVariation
double hueVariation [@property getter]
double hueVariation [@property setter]
Initial hue variation applied to each particle.
- hueVariationCurve
Curve hueVariationCurve [@property getter]
Curve hueVariationCurve [@property setter]
Each particle's hue will vary along this Curve.
- hueVariationRandom
double hueVariationRandom [@property getter]
double hueVariationRandom [@property setter]
Hue variation randomness ratio.
- initialVelocity
double initialVelocity [@property getter]
double initialVelocity [@property setter]
Initial velocity magnitude for each particle. Direction comes from spread and the node's orientation.
- initialVelocityRandom
double initialVelocityRandom [@property getter]
double initialVelocityRandom [@property setter]
Initial velocity randomness ratio.
- lifetime
double lifetime [@property getter]
double lifetime [@property setter]
The amount of time each particle will exist (in seconds).
- lifetimeRandomness
double lifetimeRandomness [@property getter]
double lifetimeRandomness [@property setter]
Particle lifetime randomness ratio.
- linearAccel
double linearAccel [@property getter]
double linearAccel [@property setter]
Linear acceleration applied to each particle in the direction of motion.
- linearAccelCurve
Curve linearAccelCurve [@property getter]
Curve linearAccelCurve [@property setter]
Each particle's linear acceleration will vary along this Curve.
- linearAccelRandom
double linearAccelRandom [@property getter]
double linearAccelRandom [@property setter]
Linear acceleration randomness ratio.
- localCoords
bool localCoords [@property getter]
bool localCoords [@property setter]
If true, particles use the parent node's coordinate space. If false, they use global coordinates.
- mesh
Mesh mesh [@property getter]
Mesh mesh [@property setter]
The Mesh used for each particle. If null, particles will be spheres.
- oneShot
bool oneShot [@property getter]
bool oneShot [@property setter]
If true, only one emission cycle occurs. If set true during a cycle, emission will stop at the cycle's end.
- orbitVelocity
double orbitVelocity [@property getter]
double orbitVelocity [@property setter]
Orbital velocity applied to each particle. Makes the particles circle around origin in the local XY plane. Specified in number of full rotations around origin per second.
This property is only available when flagDisableZ is true.
- orbitVelocityCurve
Curve orbitVelocityCurve [@property getter]
Curve orbitVelocityCurve [@property setter]
Each particle's orbital velocity will vary along this Curve.
- orbitVelocityRandom
double orbitVelocityRandom [@property getter]
double orbitVelocityRandom [@property setter]
Orbital velocity randomness ratio.
- preprocess
double preprocess [@property getter]
double preprocess [@property setter]
Particle system starts as if it had already run for this many seconds.
- radialAccel
double radialAccel [@property getter]
double radialAccel [@property setter]
Radial acceleration applied to each particle. Makes particle accelerate away from origin.
- radialAccelCurve
Curve radialAccelCurve [@property getter]
Curve radialAccelCurve [@property setter]
Each particle's radial acceleration will vary along this Curve.
- radialAccelRandom
double radialAccelRandom [@property getter]
double radialAccelRandom [@property setter]
Radial acceleration randomness ratio.
- randomness
double randomness [@property getter]
double randomness [@property setter]
Emission lifetime randomness ratio.
- scaleAmount
double scaleAmount [@property getter]
double scaleAmount [@property setter]
Initial scale applied to each particle.
- scaleAmountCurve
Curve scaleAmountCurve [@property getter]
Curve scaleAmountCurve [@property setter]
Each particle's scale will vary along this Curve.
- scaleAmountRandom
double scaleAmountRandom [@property getter]
double scaleAmountRandom [@property setter]
- speedScale
double speedScale [@property getter]
double speedScale [@property setter]
Particle system's running speed scaling ratio. A value of 0 can be used to pause the particles.
- spread
double spread [@property setter]
Each particle's initial direction range from +spread to -spread degrees. Applied to X/Z plane and Y/Z planes.
- spread
double spread [@property getter]
Each particle's initial direction range from +spread to -spread degrees. Applied to X/Z plane and Y/Z planes.
- tangentialAccel
double tangentialAccel [@property getter]
double tangentialAccel [@property setter]
Tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity giving the particles a swirling motion.
- tangentialAccelCurve
Curve tangentialAccelCurve [@property getter]
Curve tangentialAccelCurve [@property setter]
Each particle's tangential acceleration will vary along this Curve.
- tangentialAccelRandom
double tangentialAccelRandom [@property getter]
double tangentialAccelRandom [@property setter]
Tangential acceleration randomness ratio.
CPU-based 3D particle emitter.
CPU-based 3D particle node used to create a variety of particle systems and effects. See also Particles, which provides the same functionality with hardware acceleration, but may not run on older devices. Note: Unlike Particles, the visibility rect is generated on-the-fly and doesn't need to be configured by the user.