ComponentRef

Render Particles

RenderParticles

Render 2D-particles using the current material.

Example usage: "CursorModel.OnRender" in "Particles" sample project.

This component can only be used in the OnRender property on Model or Application components.

Properties

ParticlesPerSecond

Nr of particles to emit per second.

Direction

The center direction that particles move, in radians.

Spread

Variance in direction of particles, in radians. To fire particles in all direction set Direction=0 and Spread=3.14.

ParticleWidth

Width of particles.

ParticleHeight

Height of particles.

Speed

Base speed of particles.

SpeedRange

Variance in speed of particles.

Radius

Size of radius around current render position where particles are emitted.

ParticleLifetime

Lifetime in seconds of a particle.

AnimateAlpha

This value is added to the color-alpha value of each particle every second. Useful for making particles fade in or out over time.

Duration

The duration in seconds that new particles will be created. Set to 0 for no limit.

BeginTime

Delay in seconds before any particles will be created.

OnEmitExpression

An expression that will be called when a new particle is created. The following properties can be modified in the expression: PColor (particle color) and PAngle (particle angle).

Gravity

A gravitation speed that is added to every particles velocity each frame. Note that even though a Z-value can be set, only the X and Y values are used.

FollowModel

If set then the particles positions are relative to the current Model.

Green Marinee theme adapted by David Gilbert, powered by PmWiki