okay so don't pass in an array of objects but pass in a single object. modify your coord class to just take in a single cord object in the collision function also changing the code to not use [] in your if statemnt. then in your main function just call asteroid[i].collision(asteroid[i+1]);
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
richman0829 commented: Good catch! +1
Ancient Dragon commented: Nice answer. +25
Iamthedude commented: Thanks for the assistance +0
wolfkrug commented: Thanks so much! +0