This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Max56
Max56 presents ...

2020/7/23

Gravity

I didn't use the correct gravity law, because it hadn't the effect I hoped for!

left click or drag to change the position of the center

right click adds points


Note that if the position and velocity of two points are equal, they will overlap forever!
-> you could implement a check every minute and delete the overlapping ones
-> or only check the case when all the points are dragged into the corner

1580 views / 10 in the last 7 days

Tags: with-source

open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2020-07-23 05:26:13 UTC
A new version of this scenario was uploaded on 2020-07-23 05:29:51 UTC
A new version of this scenario was uploaded on 2020-10-22 20:59:29 UTC

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.