y_force: Attract particles towards a vertical position

y_forceR Documentation

Attract particles towards a vertical position

Description

This force simply pulls particles towards a fixed position on the y-axis.

Training parameters

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

  • strength : The strength with which the attraction occurs (tidy eval)

  • y : The position on the y-axis to pull towards. (tidy eval)

See Also

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


thomasp85/particles documentation built on Sept. 1, 2022, 2:43 p.m.