I'm trying to make a custom behavior and I'm not very familiar with physicsjs.
According to the docs in github I'm supposed to use var bodies = this.getTargets();
to iterate through the bodies
, but I keep getting an undefined is not a function
error.
fiddle
What am I doing wrong?