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

Report as inappropriate.

danpost
danpost presents ...

2018/12/10

Gravitational Universe Demo

Gravity in space. Binaries and massive singularities are exhibited.

A massive singularity is unstable at under 7 masses. A rare multiple massive singularities is depicted in the scenario icon.

Use 'up' and 'down' arrows to alter body count.

506 views / 5 in the last 7 days

3 votes | 0 in the last 7 days

Tags: space simulation demo with-source gravity danpost binary_systems massive_singularities

open in greenfoot
Your browser does not support the canvas tag.
NahquinNahquin

2018/12/17

Source?
A new version of this scenario was uploaded on 2018-12-19 18:16:05 UTC
NahquinNahquin

2018/12/19

Thanks. Awesome work. In world you use "Particle a, Particle b" but i dont see where did u make it is it passibly to use variable without makeing it? Or "Particle a = particles.get(j);" u make it here? Im just confused becouse i dont see any "stirng" or "int"
danpostdanpost

2018/12/20

@Nahquin, I first created a List object filled with all Particle objects in the world (named 'particles'). All particles in the list must interact with every other particle in the list. So, all different pairs of particles ('a' and 'b') are taken from the list (using the 'get' method) and passed to the 'interact' method where their gravitational interaction is applied.
nolttr21nolttr21

2018/12/20

If you add too many they all clump together
danpostdanpost

2018/12/20

@nolttr21, Yes, a "black" hole is created; and it will try to pull the entire universe into itself. It is a massive singularity I mentioned in the description.
data17data17

2019/1/14

Very fascinating visualization of the universe!
data17data17

2019/1/14

Could be interesting if the universe has no boundary to see the reaction of the particles and how the gravity looks like.

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

Who likes this?

TheSlorrow44 data17 Nahquin