path_constraint {particles} | R 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 toFALSE
See Also
Other constraints:
dominator_constraint
,
infinity_constraint
,
polygon_constraint
,
velocity_constraint
,
x_constraint
,
y_constraint
[Package particles version 0.2.3 Index]