part_attractor_force - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Sets the force and attenuation of the given particle attractor in the given particle system.
Parameter | Data Type | Description |
---|---|---|
sys | integer | index of the particle system |
ind | integer | index of the particle attractor |
force | double | attraction force of the attractor |
dist | double | maximum distance at which particles are attracted |
kind | integer | how the force is attenuated, particle system constant |
additive | integer | whether the attraction of a particle should accelerate |
void: This function does not return anything.
// demonstrates setting the force of a particle attractor
part_attractor_force(sys, attr, 10, 100, ps_force_linear, true);
NOTOC