AGK for Pascal
TAgkParticleEmitter.AngleRad Property

The range of direction in radians that a particle can choose when it first starts.

property AngleRad: Single;

This takes the base direction set with SetDirection and adjusts it by a random amount between 0 and Angle/2 radians. For example an angle of 0 would mean that all new particles follow exactly the direction specified earlier. An angle of 2*Pi would mean that particles could appear travelling in any direction, and an angle of Pi/2 would mean that particles would travel outward in a cone of Pi/2 radians from their start position with the cone centered on the given direction.

Copyright (c) 2012. All rights reserved.