I have managed to do this - but it's very laborious.
If 2 objects of the same type collide, I want them to swap their angles - simple enough. (Obviously I have to use a holding variable when I swap them.)
The problem is getting the data out of the appropriate picked object - you can't do it without picking them specifically. I ended up with something like this:
<img src="https://dl.dropbox.com/u/104684620/Capture.JPG" border="0" />
Maybe that doesn't look so bad, but if I want to scale it to be a little more complex than that then it quickly becomes and unreadable mess with everything copied into unreadable variables.
Ideally I would be able to do:
tempAngle = ant.angle
ant.angle = ant.angle
ant.angle = tempAngle
Is there any way with the picking to get more elegant code like this?