Really struggling on this, need help finding nearest target

Make sure when you post code in the forum you use Code Tags to make your code more readable.

For the solution, you just want to take the Distance check they’re doing and apply it to your code, and choose the asteroid with the lowest one.

1 Like