So I'm looking at the Physics Distance Joint example project. Say I delete the html5 sprite and I have only the cog left. On mouse click, I would like to create a new cog and attach it with a distance joint to nearest instance of cog.
But the event for create distance joint doesn't allow me to specify an instance, only an object. Is this a limitation, or am I missing something?