y_constraint: Fixes particles to a vertical position

y_constraintR Documentation

Fixes particles to a vertical position

Description

This constraint simply prevents particles from moving in the y direction. For particles where the constraint evaluates to NA this constraint is ignored. If the constraint is enforced the velocity in the y 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()

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

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

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

See Also

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


particles documentation built on Aug. 19, 2022, 5:06 p.m.