attach(agents, targets, source)
Attaches a force or constraint to a Body. Returns an AgentId of the attached agent which can be used to detach the agent.
Parameters
agents
Agent|Array.Agent
A force, constraint, or array of them.
targets
Body|Array.Body
The Body or Bodies affected by the agent
source
Body
The source of the agent
Returns
Number
AgentId