AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkParticleEmitter.SetStartZone Method (Single, Single, Single, Single)

Sets the area around the emitter where new particles may appear.

Syntax
Pascal
procedure SetStartZone(const X1: Single; const Y1: Single; const X2: Single; const Y2: Single); overload;
Parameters 
Description 
const X1: Single 
The X coordinate of the top left corner of the start zone. 
const Y1: Single 
The Y coordinate of the top left corner of the start zone. 
const X2: Single 
The X coordinate of the bottom right corner of the start zone. 
const Y2: Single 
The Y coordinate of the bottom right corner of the start zone. 

The values are relative to the emitter position. For example a zone of 0,0,0,0 would mean that all particles start on the emitter position point. A zone of -10 in X and +10 X, with Y being 0 (-10,0,10,0) would create a line centered on the emitter position that particles would randomly appear along. A box zone where both X and Y are non-zero sizes would mean that particles could start at any point inside the box.

Copyright (c) 2012. All rights reserved.