Addition/Subtraction

This flow field simulation was the result of an exercise geared to learn more about C++ vectors and lists. It involves 20,000 particles which react to external forces and can be reborn locally if they should happen to stray too far. Into this mess of particles, you can place either an attractive force (gravity) or a repulsive force (orbital). The attractive forces pull every particle towards it based on the laws of gravitation. The repulsive forces spin either clockwise or counterclockwise and any particles nearby would be thrown away from the center of the rotating force.

3711637325_50913db510_o3711637325_50913db510_o
3711790671_a26432f233_o3711790671_a26432f233_o
3715181654_326342c5a9_b3715181654_326342c5a9_b