AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkParticleEmitter.Update Method

Immediately advances the particle emitter by the given amount of time.

Syntax
Pascal
procedure Update(const TimeSec: Single);
Parameters 
Description 
const TimeSec: Single 
The time in seconds to advance the emitter. 

If you want to advance a high frequency emitter by a large time period such as 1 second you should call this command multiple times with a small time value such as 0.02 so that it creates new particles in batches and spreads them out evenly. Calling it once with a large time value of 1 second would create a huge batch of particles all at once and move them together as a blob instead of spreading them out. 

You don't need to call this method for regular particle updates.

Copyright (c) 2012. All rights reserved.