Part_attractor_force - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Sets the force and attenuation of the given particle attractor in the given particle system.
Parameters
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 |
Return Values
void: This function does not return anything.
Example Call
// demonstrates setting the force of a particle attractor
part_attractor_force(sys, attr, 10, 100, ps_force_linear, true);
NOTOC