Part_type_direction - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Sets the direction properties for the given particle type. Particles will be created with a randomly generated direction between the minimum and maximum thresholds (which must be in counter-clockwise degrees) and will turn left or right each step depending on the relative direction change you specify.
Parameters
Parameter | Data Type | Description |
---|---|---|
ind | integer | index of the particle type |
min | double | minimum direction in counter-clockwise degrees, default is 0 |
max | double | maximum direction in counter-clockwise degrees, default is 0 |
incr | double | relative direction change each step, default is 0 |
wiggle | double | wiggling of the direction, default is 0 |
Return Values
void: This function does not return anything.
Example Call
// demonstrates setting the direction of a particle type
part_type_direction(type, 0, 360, -5, 0);
NOTOC