x_constraint: Fixes particles to a horizontal position

x_constraintR Documentation

Fixes particles to a horizontal position

Description

This constraint simply prevents particles from moving in the x direction. For particles where the constraint evaluates to NA this constraint is ignored. If the constraint is enforced the velocity in the x direction will be set to 0.

Training parameters

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

  • x : The position on the x-axis to fix to. (tidy eval)

  • xmin : The lowest permissible x-value. If NULL then x will be used. (tidy eval)

  • xmax : The highest permissible x-value. If NULL then x will be used. (tidy eval)

See Also

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


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