This force pushes overlapping particles apart by assigning a radius to each particle, treating them as circles, and searches for overlaps through an optimised quad tree algorithm.
The following parameters defines the training of the force and can be passed
along a call to wield()
strength
: A dampening of the repulsion between overlapping circles. This
allows the force to iterate towards the optimal solution through iterative
relaxation. Should be a number between 0 and 1. Defaults to 0.7
radius
: The radius of each particle. Defaults to 1 (tidy eval)
n_iter
: The number of iterations to perform in the iterative relaxation.
Defaults to 1.
Other forces:
center_force
,
field_force
,
link_force
,
manybody_force
,
map_force
,
mean_force
,
random_force
,
reset_force
,
trap_force
,
x_force
,
y_force