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

Report as inappropriate.

RcCookie
RcCookie presents ...

2020/10/7

Universe Sandbox 2D

This is a universe simulation inspired by sandbox universe (I don’t actually own that game). It’s main goals is to simulate movement of planets and other astronomical bodys as realistically as possible.

In my version you can create and manipulate all planets simply by clicking on it or dragging it around. Also feel free to simulate everything in real-time (spoiler: it’s quite boring) or speed things up up to 10E9 times. Same goes for visuals: since the universe is pretty big (I think) and planets are rather small you can scale the planets visual appearance.

One of the key features of this project is actually the UI. All hand-coded, the menus allow for (for Greenfoot standards) many advanced runtime controls, like sliders, switches, selections or complete menus. All you see here can easily be reused.


Future objectives:
- Add option to manipulate speed of objects
- Include special and general relativity in physics (time and distance dilation, spacetime)
- Improve collision physics
- Improve objects graphics

18528 views / 17227 in the last 7 days

3 votes | 0 in the last 7 days

Tags: mouse game simulation physics demo gravity experiment sandbox universe einstein

open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2020-10-08 20:20:18 UTC Adjusted demo
A new version of this scenario was uploaded on 2020-10-09 19:20:25 UTC Fixed UI bug
A new version of this scenario was uploaded on 2020-10-09 19:32:28 UTC Fixed bug with fps, significantly improved ui performance
A new version of this scenario was uploaded on 2020-10-09 19:45:37 UTC Added option to remove objects at runtime
A new version of this scenario was uploaded on 2020-10-09 19:50:32 UTC Fixed ui overlapping
A new version of this scenario was uploaded on 2020-10-10 10:24:35 UTC Improved ui, added dragging option
A new version of this scenario was uploaded on 2020-10-10 10:31:22 UTC Changed UI colors
A new version of this scenario was uploaded on 2020-10-10 13:30:09 UTC Adjusted physics and UI improvements
A new version of this scenario was uploaded on 2020-10-11 15:02:27 UTC Small thread test
A new version of this scenario was uploaded on 2020-10-11 15:06:31 UTC Fixed bug

See all comments

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

Who likes this?

Game/maniac Kostya20052011 Gbasire