I recently worked on particle animations by simulating a forceField with two masses creating a gravitational pull on each other(using newtons law of universal gravitation: F1/2 = G * m1*m2/r^2).
The colors in the picture indicate the velocity of each particle and the lines the velocity direction vector.
![]() | |
| figure: particles in gravitational forceField (Engine and Graphics: Andreas Walenda) (Engine and Graphics: Andreas Walenda) |
I also added an algorithm to connect particle with its closest neighbour creating a very interesting effect of "attract and let go", just interesting to look at. I added the algorithm as a separate tutorial page("Nearest Neighbour Connection Algorithm for Particles in C/C++").
![]() |
| figure: particles in gravitational forceField connected to its nearest neighbours (Engine and Graphics: Andreas Walenda) |
video: particles in gravitational forceField connected
to its nearest neighbours
(Engine and Graphics: Andreas Walenda)
to its nearest neighbours
(Engine and Graphics: Andreas Walenda)



No comments:
Post a Comment