path_constraint: Limit particle position to be along a path or outline

path_constraintR Documentation

Limit particle position to be along a path or outline

Description

This constraint repositions particles to their closest point along a given path and sets their velocity to zero.

Training parameters

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

  • path : A two column matrix giving the path, or a list of matrices to use multiple disconnected paths.

  • closed : Should the path close on itself. Defaults to FALSE

See Also

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


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