Has anybody used this library before? These are the instructions for adding your own force, but they are pretty opaque to me (probably bc I just am not as good of a coder as this guy):
addForce(c)
Adds a force callback function. This enables you to change the simulation with your own forces. Called fr
callback c
A valid JS function, called on update()
for each boid. Receives as parameters: (BoidsManager, Boid)