From is a just a variable of type Star. If it were me, I would probably call it FromStar, TargetStar or DestStar so that it's more obvious that it's a star. You're checking how far away the current star is FROM the fromstar.
Body2 doesn't exist at first. It's using EachIn to iterate through all the stars you previously put in the list.
Every time you create a star, you add it to the list ( this line in the create function )
So EachIn just provides a convenient way to get all the stars you've created ( as long as you put them in the list, it won't happen automatically is it did with B3D.
Oh, and continue just skips to the end of the loop it's being called in. So it skips the If..EndIf immediately following it, and reaches the Next instead. It then continues to loop until you've gone through the entire list as normal ( unless you already have in which case it exits the loop as normal too. )
He's using it to check if the stars you're comparing are in fact the same star. You don't want to know how far away a star is from itself, so if they are the same, it skips the condition and carries on with the remaining stars.
Body2 doesn't exist at first. It's using EachIn to iterate through all the stars you previously put in the list.
Every time you create a star, you add it to the list ( this line in the create function )
ListAddFirst StarList , (Body)
So EachIn just provides a convenient way to get all the stars you've created ( as long as you put them in the list, it won't happen automatically is it did with B3D.
Oh, and continue just skips to the end of the loop it's being called in. So it skips the If..EndIf immediately following it, and reaches the Next instead. It then continues to loop until you've gone through the entire list as normal ( unless you already have in which case it exits the loop as normal too. )
He's using it to check if the stars you're comparing are in fact the same star. You don't want to know how far away a star is from itself, so if they are the same, it skips the condition and carries on with the remaining stars.