Here's what I need to do. I have a sprite object with physics called "mass." World gravity is 0. I can hold down the mouse and apply force to all the "mass" objects so they start moving towards the mouse cursor. I need for them to each be drawn to each other in the same way.
Here's my problem. When I try to tell "mass" to move towards mass.X and mass.Y it's picking itself. I need some kind of forEach that picks all the others except for itself. Maybe there's a better way to simulate gravity between each mass?
You can see what I tried to do here using IDs to keep it from picking itself... as you might expect this didn't do anything at all.