Learn R Programming

particles (version 0.2.3)

path_constraint: 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.

Arguments

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