velocity_constraint: Limits particles to a specific velocity range

velocity_constraintR Documentation

Limits particles to a specific velocity range

Description

This constraint puts bounds on the magnitude of velocity a particle can have. Particles where either end of the bound is NA ignores the constraint. If a particle with no velocity is forced to have a velocity the direction will be random.

Training parameters

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

  • v : The velocity allowed for the particle. (tidy eval)

  • vmin : The lowest permissible velocity. If NULL then v will be used. (tidy eval)

  • vmax : The highest permissible velocity. If NULL then v will be used. (tidy eval)

See Also

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


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