A set of points located initially arranged randomly in space are affected by gravity. Each point is assigned a mass that will generate a local gravity and attract other surrounding points. In order to accelerate the process of checking neighborhood a regular mesh is used.
16 июн 2019