Collapse Sidebar




The Speed property determines the random range of velocities that newly emit particles may have. It is measured in studs per second using a DataType/NumberRange. The velocity is chosen upon emission, and is applied in the ParticleEmitter/EmissionDirection. Negative speed values will cause particles to travel in reverse.

Below is an animation of two default ParticleEmitters; the left has the default Speed of 5. The right one has the Speed range set to [20, 20], so its particles emit at a constant speed of 20.
Two default ParticleEmitters, the right has a speed of 20.

ParticleEmitter/VelocityInheritance, ParticleEmitter/Acceleration and ParticleEmitter/Drag will affect a particle’s speed over its lifetime. Changing Speed will not affect already existing particles - they will retain whatever speed they have already.

Code Samples

Creating a Particle Emitter from Scratch

This rather lengthy code sample shows how every property of a ParticleEmitter can be set, including DataType/NumberRange, DataType/NumberSequence and DataType/ColorSequence properties. Below is how the ParticleEmitter should after every property is set. Try playing around with the different properties to customize how the effect looks!

The final product