POINT_ATTRACTOR(v, options)
Point attractor force, e.g., Hookean spring with an anchor
Parameters
v
Vector
Current position of physics body
options
Object
And object with the position of the attractor Pass a {position : Vector} into the VectorField options
Returns
Vector
unscaled force