AGK for Pascal
TAgkParticleEmitter.SetDirection Method (TAgkVector)

Sets the initial direction of new particles when they emerge from the emitter.

procedure SetDirection(const V: TAgkVector); overload;
const V: TAgkVector 
The direction that particles will move initially. 

This can be used along with Angle to set the range of variation from this initial direction that new particles can choose. This also sets the initial speed of the particles by taking the length of the vector as units per second. For example if the initial direction is VX=10, VY=-15, particles will begin by moving to the right at a rate of 10 units per second and upwards at a rate of 15 units per second and will continue this rate of motion for their entire life unless influenced by forces added with AddForce.

Copyright (c) 2012. All rights reserved.