ZGameEditor Documentation
Community |
RenderParticlesRenderParticlesRender 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. PropertiesParticlesPerSecondNr of particles to emit per second. DirectionThe center direction that particles move, in radians. SpreadVariance in direction of particles, in radians. To fire particles in all direction set Direction=0 and Spread=3.14. ParticleWidthWidth of particles. ParticleHeightHeight of particles. SpeedBase speed of particles. SpeedRangeVariance in speed of particles. RadiusSize of radius around current render position where particles are emitted. ParticleLifetimeLifetime in seconds of a particle. AnimateAlphaThis value is added to the color-alpha value of each particle every second. Useful for making particles fade in or out over time. DurationThe duration in seconds that new particles will be created. Set to 0 for no limit. BeginTimeDelay in seconds before any particles will be created. OnEmitExpressionAn 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). GravityA 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. FollowModelIf set then the particles positions are relative to the current Model. |