polygon_constraint: Fixes particles to be inside a polygon

Description Training parameters See Also

Description

This constraint prevents particles from moving outside of one or more polygons. If a particle ventures outside it will be moved back to its closest point inside the specified polygon(s) and have its velocity set to zero.

Training parameters

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

See Also

Other constraints: dominator_constraint, infinity_constraint, path_constraint, velocity_constraint, x_constraint, y_constraint


thomasp85/particles documentation built on Jan. 15, 2019, 2:25 a.m.