I can get the group of vehicles' coordinate data (using vehicles.get(i) ) but I want to be able to access the location data (loc.x, loc.y) for specifically the 3rd vehicle in the 'vehicles' group. Is there a way to tag/index each one of the vehicles that are created so that I can reference specific vehicles within that group?
I'm fairly new to processing - I'm trying to access each individual 'x' and 'y' location numbers that are stored in a PVector array. I'm trying to use Maxlink to send the individual x and y 'coordinates' of say, several "bouncing balls in a window", to max msp. Everything works for one 'ball's x and y coordinates, but I can't figure out how to send multiple balls' coordinate data.