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

MatheMagician's Comments

Back to MatheMagician's profile

Yes, you may. What are you going to use it for?
The bubbles are in the cube, but it is hard to tell. It is kindof transparent, but I will work on that as well. I'll update it with those improvements.
@gz27621, I created a game similar to cube field here: http://www.greenfoot.org/scenarios/5684
The principle is, the pendulum should be increasing by the square root function of its length.
Are you calculating the period of the pendulum using this equation: 2PI*sqrt(length/gravity)
Usually, I am actually only drawing 100 pixels by 100 pixels for each face. However, this currently has the limitation of not being scalable. That's when I use the polygon's (in the slow mode), but as you know, this is very slow. I am currently working on what you just mentioned, essentially my own polygon drawing code..
That sounds cool. It will be a little tricky though, so, it might take me a little bit to make it. I think I could have it done by the weekend.
10,000 views!
That is all in meters and assuming you are doing this on earth: so if you want to change it to your own variables, the basic equation is this: 2*PI*sqrt(length of pendulum/Gravitational acceleration)