Learn R Programming

particles (version 0.2.4)

reset_force: Reset the velocity verlet of particles to a fixed value

Description

This force resets the velocity of particles at each generation. It can be used if each generation should start from the same foundation rather than accumulate as the simulation evolve. Particles where the parameters evaluates to NA will ignore this force.

Arguments

Training parameters

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

  • xvel : The x-velocity to reset to at each generation (tidy eval)

  • yvel : The y-velocity to reset to at each generation (tidy eval)

See Also

Other forces: center_force, collision_force, field_force, link_force, manybody_force, map_force, mean_force, random_force, trap_force, x_force, y_force