The fancy/complicated looking
code basically calculates the distances between our object and the other object in the x and y coordinates. So it creates the gravity stuff between them.
From this chapter, I was so surprised about the Pythagoras theorem is being USED in computer greenfoot!
OMG.
The computer used the Pythagoras theorem to calculate the distance between the two objects!
OMG
and GUESS WHAT?
the computer also uses Newton's formula to calculate the strength of the force
Hahahahaha
I also learned that as you changed your gravity,
the gravity from 5.8 to 9.8, l noticed that the planet moved faster than it did when the gravity was 5.8
When I changed the vector from Vector(0, 1.0) to new vector(32, 12.0)
I can totally notice that something was different but I don't know what is different....
like I think there is something different going on but I don't know exactly what it is.
So like, I realize the sun(the big yellow one)
and GUESS what .
you can add music! meaning noise... ahha