center_force: Center all particles around the origin without affecting...

center_forceR Documentation

Center all particles around the origin without affecting velocity

Description

This force repositions the particles at each generation so they are centered around (0,0). It does not affect the velocity of the particles and are thus mainly a guard against the whole body of particles drifting off.

Training parameters

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

  • x : The x position to center around (tidy eval)

  • y : The y position to center around (tidy eval)

See Also

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


particles documentation built on Aug. 19, 2022, 5:06 p.m.