We use cookies on this site to enhance your user experience
Collapse Sidebar




The RotSpeed property determines a random range of angular speeds that newly emit particles will have. A random angular speed is chosen upon emission, so changing this property will not affect already emit particles. This property, along with ParticleEmitter/Rotation affect the angle of the rendered particle image. This property is a DataType/NumberRange measured in degrees per second.

Below is an animation of two default ParticleEmitters. The right has a nonzero RotSpeed, so its particles rotate as they move through the world.
Two default ParticleEmitters; the right emitter has a RotSpeed applied

Using a spiral as a ParticleEmitter/Texture like the one below, you can create some quite interesting particle effects:
A swirl textureA portal effect using RotSpeed and a Swirl texture

Particles with very high angular speeds can appear to rotate slower or not at all - this is because the angle of rotation is synchronized with the software render speed. In other words, if the particle is rotating at exactly 360 degrees every frame, there will be no apparent change in rotation.

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