manybody_force {particles}R Documentation

Model attraction or repulsion between all particles in the system

Description

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


[Package particles version 0.2.3 Index]