This constraint repositions particles to their closest point along a given path and sets their velocity to zero.
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
Other constraints:
dominator_constraint
,
infinity_constraint
,
polygon_constraint
,
velocity_constraint
,
x_constraint
,
y_constraint