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




The Rotation property determines the angle at which new particles are emit. It is a DataType/NumberRange measured in degrees. Positive values are in the clockwise direction. This property is often set to [0, 360] to provide a completely random rotation to new particles. ParticleEmitter/RotSpeed also influences the rotation of a particle over its lifetime. Finally, this property is useful for correcting any ParticleEmitter/Textures that aren’t at the desired orientation.

Pictured below are two default ParticleEmitters, except that the right has a Rotation of 22.5. Note how the particles on the left are straight up, and the right are tilted slightly.

Two default ParticleEmitters with varying Rotations

Changes to this value only affect new particles; existing particles will maintain the rotation at which they were originally emitted.

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