manybody_force: Model attraction or repulsion between all particles in the...

Description Training parameters See Also


This force implements a n-body simulation using the Barnes-Hut approximation for improved performance. An n-body simulation calculates attraction or repulsion between all particles in a system based on their relative distances and each particles capacity and can thus mimick gravity or electrostatic repulsion.

Training parameters

The following parameters defines the training of the force and can be passed along a call to wield()

See Also

Other forces: center_force, collision_force, field_force, link_force, map_force, mean_force, random_force, reset_force, trap_force, x_force, y_force

thomasp85/particles documentation built on Jan. 15, 2019, 2:25 a.m.