Part_emitter_region - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Sets the region and distribution of the given particle emitter in the given particle system. This is the area in which particles are emitted.
Parameters
| Parameter | Data Type | Description |
|---|---|---|
| sys | integer | index of the particle system |
| ind | integer | index of the particle emitter |
| xmin | double | minimum x coordinate |
| xmax | double | maximum x coordinate |
| ymin | double | minimum y coordinate |
| ymax | double | maximum y coordinate |
| shape | integer | shape of the region, particle system constant |
| dist | integer | distribution of particles, particle system constant |
Return Values
void: This function does not return anything.
Example Call
// demonstrates setting the region of a particle emitter
part_emitter_region(sys, emitter, x - 5, x + 5, y - 5, y + 5, ps_shape_ellipse, ps_dist_linear);
NOTOC