@nolttr21, Yes, a "black" hole is created; and it will try to pull the entire universe into itself. It is a massive singularity I mentioned in the description.
@Nahquin, I first created a List object filled with all Particle objects in the world (named 'particles'). All particles in the list must interact with every other particle in the list. So, all different pairs of particles ('a' and 'b') are taken from the list (using the 'get' method) and passed to the 'interact' method where their gravitational interaction is applied.
Not really useful unless you use it properly. Notice how your slower moving flakes only go horizontally and vertically and slightly faster ones might go diagonally (along multiples of 45 degrees). This is caused by hardware constraints (pixel locations on the screen). Better use of the class would allow any angle at any speed.
2018/12/23
Simple Drop-down List
2018/12/20
Gravitational Universe Demo
2018/12/20
Gravitational Universe Demo
2018/12/17
Pause World Class
2018/12/13
Super cool game
2018/12/10
Lissajous Curves
2018/11/28
Calendar Actor Class
2018/11/22
ChessWorld
2018/8/28
Snow