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

Report as inappropriate.

Game/maniac
Game/maniac presents ...

2013/12/30

Gravity Sim

This is my gravity simulator.

Controls:
a,w,s,d -> move around
left click -> remove object
right click -> add object
c -> clear all objects
q -> zoom in
e -> zoom out
f -> reset zoom
z -> change collision type
p -> pause

5345 views / 16 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse simulation physics with-source

This scenario is a member of: Games/Simulations by Game/maniac


open in greenfoot
Your browser does not support the canvas tag.
Game/maniacGame/maniac

2016/8/1

When "stick" is enabled objects appear to become one object, but really they act separately, however because of this if you have three objects stuck together, there will be a wired glitch where momentum is gained even though it should be conservered.
Game/maniacGame/maniac

2016/8/1

*Conserved
A new version of this scenario was uploaded on 2021-05-06 22:38:59 UTC Updated for latest version of Greenfoot
A new version of this scenario was uploaded on 2021-05-06 22:39:18 UTC Updated for latest version of Greenfoot
A new version of this scenario was uploaded on 2021-05-06 22:53:19 UTC Fixed issue with dialog box
A new version of this scenario was uploaded on 2021-05-06 22:58:33 UTC
Game/maniacGame/maniac

2021/5/6

@Danpost Could you help me figure out why my scenario isn't working please? I can see errors in the browser console, but I'm not sure how to fix it.
danpostdanpost

2021/5/7

For not working, it may just be that you have an Object class. Try renaming it. Not sure why you used the try-catch structure.
A new version of this scenario was uploaded on 2021-05-07 07:28:02 UTC Fixed issue with using reserved words
Game/maniacGame/maniac

2021/5/7

Thanks Danpost! It was the use of the name Object. The try catch statements are to handle conversion issues from String to Double.

See all comments

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

Who likes this?

bourne MaxAlbert