trap_force: Attract and trap particles within polygons

Description Training parameters See Also


This force creates a trap based on any type of polygon that attracts particles as long as they are outside the polygon, while leaving particles inside the polygon unaffected. The trap as such has no walls and particles are allowed to leave it, but they will be pulled back as soon as they exits the polygon.

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, manybody_force, map_force, mean_force, random_force, reset_force, x_force, y_force

particles documentation built on May 2, 2019, 4:01 p.m.